Auto-converting long pasted prompts to Pasted text.txt breaks Codex App workflows
What version of the Codex App are you using (From “About Codex” dialog)?
26.527.60818
What subscription do you have?
Not relevant to this bug / not provided
What platform is your computer?
macOS desktop app; exact machine details redacted
What issue are you seeing?
Long plain-text prompts pasted into the Codex App composer are automatically converted into a generated attachment named Pasted text.txt instead of remaining visible, editable text in the input box.
This is very disruptive for coding-agent workflows. Long pasted text is often the actual task prompt or implementation instructions, not a background document or log file. When Codex silently converts it into an attachment, the interaction model changes:
- I can no longer review or edit the pasted prompt inline before sending.
- I have to add extra instructions like “read the attached Pasted text.txt as my prompt.”
- It is unclear whether the attachment is treated as active prompt text/context in the same way as inline text.
- Follow-up turns are less predictable because the original instructions are now a file attachment rather than normal conversation text.
- There is no obvious setting, shortcut, or UI action to disable the conversion or convert the attachment back into inline prompt text.
This may be useful as an optional behavior for huge logs or documents, but forcing it for structured task prompts makes normal copy/paste workflows slower and more error-prone.
What steps can reproduce the bug?
- Open Codex App in a local/worktree-style desktop session.
- Copy a long structured prompt or task card, around 5,000+ characters.
- Paste it into the composer.
- Observe that Codex creates a generated attachment named
Pasted text.txtinstead of inserting the prompt as editable composer text. - Try to review, edit, or treat the pasted prompt as the actual agent instruction.
Actual result: the prompt is hidden behind a text-file attachment with no obvious way to preview/edit it in-place, paste it inline, or turn this behavior off.
What is the expected behavior?
Expected behavior:
- Pasted text should remain pasted text by default, especially when the paste is the user's actual task prompt.
- If Codex wants to offer attachment conversion for large pastes, it should be optional.
- Add a setting such as “Auto-convert long pasted text to attachments: On / Off.”
- Add a visible action such as “Paste as text,” “Convert back to inline text,” or “Open/edit generated paste inside Codex.”
- At minimum, the app should make it completely clear whether the attached text is being treated as active prompt instructions.
Additional information
Please do not force this behavior without an escape hatch. It is a major regression for users who routinely paste long implementation prompts into Codex.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗