codex - 💡(How to fix) Fix Feature request: convert large pasted text into an attachment/document in the Codex input

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Please consider adding the same kind of paste behavior that ChatGPT has: when the user pastes a large amount of text into the input box, automatically convert it into a compact document/attachment card instead of inserting the entire text directly into the composer.

This would be very useful in Codex because users often paste long logs, build outputs, stack traces, copied terminal output, issue templates, or long prompts.

Root Cause

  • Makes the composer much cleaner when pasting long logs or large code/output snippets.
  • Reduces accidental prompt clutter and makes the final message easier to review before sending.
  • Improves performance and responsiveness when handling very large pasted text.
  • Helps users manage context more safely and intentionally.
  • Matches a behavior that already works well in ChatGPT.
RAW_BUFFERClick to expand / collapse

Summary

Please consider adding the same kind of paste behavior that ChatGPT has: when the user pastes a large amount of text into the input box, automatically convert it into a compact document/attachment card instead of inserting the entire text directly into the composer.

This would be very useful in Codex because users often paste long logs, build outputs, stack traces, copied terminal output, issue templates, or long prompts.

Current behavior

When a large block of text is pasted into Codex, it appears to stay directly inside the input composer as plain pasted text. This makes the input area hard to read and manage, especially when the pasted content is very long.

Expected behavior

For large pasted text, Codex could automatically create a temporary text document/attachment, similar to ChatGPT's behavior. The composer could show a small attachment card with something like:

  • a generated filename, for example pasted-text.txt, logs.txt, or build-output.txt;
  • a short preview or token/line count;
  • buttons to expand, preview, rename, remove, or convert back to inline text.

Why this matters

  • Makes the composer much cleaner when pasting long logs or large code/output snippets.
  • Reduces accidental prompt clutter and makes the final message easier to review before sending.
  • Improves performance and responsiveness when handling very large pasted text.
  • Helps users manage context more safely and intentionally.
  • Matches a behavior that already works well in ChatGPT.

Suggested details

  • Trigger only above a reasonable size threshold, such as a large character/line count.
  • Preserve exact plain-text content, including newlines, indentation, stack traces, and log formatting.
  • Allow users to remove the attachment before sending.
  • Allow users to preview the pasted document before sending.
  • Consider supporting multiple pasted text attachments in one prompt.

This is related to paste/input ergonomics, not to copying/exporting existing Codex conversations.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

For large pasted text, Codex could automatically create a temporary text document/attachment, similar to ChatGPT's behavior. The composer could show a small attachment card with something like:

  • a generated filename, for example pasted-text.txt, logs.txt, or build-output.txt;
  • a short preview or token/line count;
  • buttons to expand, preview, rename, remove, or convert back to inline text.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Feature request: convert large pasted text into an attachment/document in the Codex input