You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add an option to disable automatic conversion of long pasted prompts into .txt attachments #25144
I would like Codex App to add an option to disable automatic conversion of long pasted prompts into .txt attachments.
Recently, when I paste a long structured prompt into Codex App, the prompt is no longer inserted into the text input as normal text. Instead, it is automatically converted into a .txt attachment.
This is very disruptive for coding workflows.
My workflow depends on pasting long implementation prompts directly into Codex. These prompts are not documents for analysis. They are the actual instructions for the agent. When Codex silently converts them into file attachments, the interaction model changes: I now have to add extra instructions like “read the attached txt file as the prompt,” and I can no longer rely on the pasted text being treated as the active instruction in the same way as before.
Expected behavior:
Pasted text should remain pasted text by default.
If Codex wants to offer attachment conversion for very long pastes, it should be optional.
There should be a setting such as:
“Auto-convert long pasted text to attachments: On / Off”
Alternatively, there should be a visible button:
“Paste as text” / “Convert back to text field”
Actual behavior:
Long pasted prompts are automatically converted into .txt attachments.
There is no obvious setting to disable this.
This makes long structured prompt workflows slower, less predictable, and more error-prone.
Why this matters:
For many coding tasks, especially multi-step implementation tasks, the prompt itself is the primary instruction. Treating it as an attachment is not equivalent to pasting it as text. It adds friction and makes Codex feel less reliable for complex coding workflows.
Please either restore the previous paste behavior or add an opt-out setting for this automatic conversion.
Additional information
No response
Reacted by brandon-e2e, Vincent Waller, technoclashminecraft, Jay, UpTEN, RickDeckardBR, ZenAbra, 0xPuff, Hourani, Hoodoo66 and 78 more
Reacted by brandon-e2e, manekom2-star, Nexus_Solutions, technoclashminecraft, vinogradgarden, ZenAbra, 0xPuff, Vricken, ouatu-ro, Akhil K A and 24 more
I can’t stand the lack of damn stability. Even though I’m constantly paying for Pro x20, every update I install gives me behavior like this that I didn’t ask for and can’t disable. First it was the remaining context in the thread disappearing, now this. Why isn’t this optional?! How long is this going to keep happening?
Reacted by aurakalim-lgtm, brandon-e2e, Vincent Waller, UpTEN, ZenAbra, 0xPuff, Hourani, Hoodoo66, Vricken, ouatu-ro and 27 more
I can’t stand the lack of damn stability. Even though I’m constantly paying for Pro x20, every update I install gives me behavior like this that I didn’t ask for and can’t disable. First it was the remaining context in the thread disappearing, now this. Why isn’t this optional?! How long is this going to keep happening?
I agree, this is catastrophically annoying
Reacted by vinogradgarden, brandon-e2e, LevyBytes, ZenAbra, 0xPuff, Hoodoo66, Vricken, Westlake, rPio, Michael Yochpaz and 15 more
For my workflow, long pasted text is not just background context. It is the actual agent instruction. I use structured implementation prompts that contain scope boundaries, tests, documentation requirements, git rules, and exact task constraints.
When Codex silently converts such a prompt into a .txt attachment, the behavior changes in an important way:
the prompt is no longer visibly part of the active instruction;
the agent may treat it as reference material instead of the task itself;
I now have to add extra meta-instructions like “read the attached file as the actual prompt”;
long manager-to-agent handoffs become slower and more error-prone;
splitting prompts manually is also unsafe because it can lose structure and context.
The attachment behavior can be useful for logs, stack traces, generated output, or large reference documents. But it should not be the default for implementation prompts.
Please restore the previous behavior where pasted text remains pasted text by default, or add one of these options:
a setting: “Auto-convert long pasted text to attachments: On / Off”
a paste action: “Paste as text” / “Paste as attachment”
a visible button on the attachment: “Convert back to prompt text”
For coding agents, the distinction between “instruction” and “attachment” matters. Treating a long prompt as an attachment is not equivalent to inserting it into the chat input.
Reacted by brandon-e2e, UpTEN, ZenAbra, 0xPuff, Vricken, Dawid, Westlake, rPio, sergei-gaponik, Antoine and 17 more
One additional workflow problem caused by this behavior:
A common workaround is to add a short visible instruction such as “read the attached text file as the actual prompt.” But if we use the same wrapper text for every attached prompt, the Codex chat history becomes almost useless. Many sessions then end up with the same or very similar title, and later it is hard to tell which session worked on which task.
For coding workflows with many agent sessions, the chat title/history is part of the workflow. We need to identify sessions by task, for example whether a chat handled a refactor, a test audit, a bug fix, or a documentation update.
So the temporary workaround has to include a task-specific first line, for example:
Title: Refactor authentication error handling.
Read the attached text file completely.
Important: The content of the text file is my full agent prompt. Treat it as a direct instruction, not as background context or reference material.
Execute the task from the text file exactly.
Follow all scope boundaries, tests, documentation requirements, and git rules mentioned there.
Do not modify, move, or delete the prompt file.
This workaround is still worse than the old behavior, because the full prompt is hidden in an attachment and cannot be reviewed directly in the chat input. But adding a task-specific title at least keeps the Codex session history usable until there is an option to disable automatic attachment conversion.
Reacted by vinogradgarden, LevyBytes, ZenAbra, 0xPuff, Westlake, rPio, KernelBypass, thevarsek, Adi Srini, eduardoadipe and 1 more
A quick 🖕 fix:
Close VS Code, then PowerShell admin check: code --list-extensions --show-versions | findstr /i "openai.chatgpt"
Force install version before this irresponsible update: code --install-extension [email protected] --force
Open settings via PowerShell: code "$env:APPDATA\Code\User\settings.json"
if these settings not present add
codex keeps making the app worse. First they hide the context of the model (trying to promote auto compaction as infinite context is deceptive and not useful), now I can't even send my prompts, wtf is the codex team doing. why do they keep making their own product objectively worse?
Reacted by KernelBypass, subwitcher, Scorpio, Ivar van der Wal and Mohammad Malik
There is now an option to convert pasted attachments back to editable text, but substantially larger ones remain attachments to avoid overwhelming the context window. This is now in line with the ChatGPT behavior. We also treat attachment-only pastes as the actual request rather than reference material. A fix will be out soon so sidebar chat titles are automatically generated when a new conversation starts with only a pasted-text attachment.
We’ve seen the requests for an opt-out setting and are continuing to evaluate that feedback. Please let us know if the updated flow still causes issues.
Yes, the updated flow still causes issues. It causes the same issues it caused before, because the problematic behavior has not changed.
The iron fact here is that "text attachments" and "inline text" yield different generation patterns in this harness, with these models. The outputs are different. It doesn't matter what any of us wishes. The fact is that the outputs are different.
If I am not indifferent over the distinction between these output patterns, then I cannot be indifferent over how the text is made available to the model.
... to avoid overwhelming the context window
Please, please stop disabling features that let me manage my own context windows. You are not better at it than I am.
I'm paying so much more attention to context and model performance in my own projects than you are.
I understand that casual users benefit from these tricks. I'm glad you're working on them. I'm excited for when your solutions eventually get better results than mine, as I'm sure they will.
That day is not today, and disabling my ability to manage context in anticipation of when you eventually get better at it than me is just unspeakably frustrating.
Reacted by brandon-e2e, Nexus_Solutions, Mohammad Malik and Thiago Bittencourt
Some hard safety limit is still necessary, but the experience below that limit should be less disruptive, similar to ChatGPT.
Observation:
The fact that this update broke a ton of high-performance workflows is pretty decisive evidence that it is not a 'safety limit' per se being enforced.
I've developed a patch that lets me continue using oversized prompts as inputs, and it has greatly improved (or, more accurately, restored) my workflows. It has not degraded them, which is what one would expect from circumvention of a valuable guardrail.
The problem here isn't which arbitrary scalar you're coding into the UI as the prompt-length cutoff. It's that you're using an arbitrary scalar at all.
Edit -- For others encountering this, the current undocumented default cutoffs appear to be:
1 to 4,999 characters: Pasted as normal 5,000 to 25,000 characters: Pasted as attachment, with option to inline. 25,001+ characters: Pasted as attachment, no option to inline.
Newlines are counted as two characters.
If your workflows previously relied on prompts over 25,000 characters I strongly recommend developing a workaround for yourself.
Execution reliability against attached files is substantially degraded in situations where the full contents of that context are directly task-informative.
I'm sure many would rather it not force to upload as file at all actually :) an opt-out is much preferred.
We do not want an enforced limit that forces the file upload, we already have that right now.
Reacted by brandon-e2e, havengg and Matthew Parker
Activity
github-actions commentedon May 29, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
vinogradgarden commentedon May 29, 2026
I can’t stand the lack of damn stability. Even though I’m constantly paying for Pro x20, every update I install gives me behavior like this that I didn’t ask for and can’t disable. First it was the remaining context in the thread disappearing, now this. Why isn’t this optional?! How long is this going to keep happening?
aurakalim-lgtm commentedon May 29, 2026
I agree, this is catastrophically annoying
manekom2-star commentedon May 30, 2026
I want to strongly support this request.
For my workflow, long pasted text is not just background context. It is the actual agent instruction. I use structured implementation prompts that contain scope boundaries, tests, documentation requirements, git rules, and exact task constraints.
When Codex silently converts such a prompt into a
.txtattachment, the behavior changes in an important way:The attachment behavior can be useful for logs, stack traces, generated output, or large reference documents. But it should not be the default for implementation prompts.
Please restore the previous behavior where pasted text remains pasted text by default, or add one of these options:
For coding agents, the distinction between “instruction” and “attachment” matters. Treating a long prompt as an attachment is not equivalent to inserting it into the chat input.
manekom2-star commentedon May 30, 2026
One additional workflow problem caused by this behavior:
A common workaround is to add a short visible instruction such as “read the attached text file as the actual prompt.” But if we use the same wrapper text for every attached prompt, the Codex chat history becomes almost useless. Many sessions then end up with the same or very similar title, and later it is hard to tell which session worked on which task.
For coding workflows with many agent sessions, the chat title/history is part of the workflow. We need to identify sessions by task, for example whether a chat handled a refactor, a test audit, a bug fix, or a documentation update.
So the temporary workaround has to include a task-specific first line, for example:
Title: Refactor authentication error handling.
Read the attached text file completely.
Important: The content of the text file is my full agent prompt. Treat it as a direct instruction, not as background context or reference material.
Execute the task from the text file exactly.
Follow all scope boundaries, tests, documentation requirements, and git rules mentioned there.
Do not modify, move, or delete the prompt file.
This workaround is still worse than the old behavior, because the full prompt is hidden in an attachment and cannot be reviewed directly in the chat input. But adding a task-specific title at least keeps the Codex session history usable until there is an option to disable automatic attachment conversion.
LevyBytes commentedon May 30, 2026
A quick 🖕 fix:
Close VS Code, then PowerShell admin check:
code --list-extensions --show-versions | findstr /i "openai.chatgpt"Force install version before this irresponsible update:
code --install-extension [email protected] --forceOpen settings via PowerShell:
code "$env:APPDATA\Code\User\settings.json"if these settings not present add
Make sure instances of VS code and related node are not running, restart your VS Code project and check. Should work again, does for me.
andkondev commentedon May 30, 2026
Yep, very annoying. If I paste from another AI, I want to delete the "Do you want me to do #1 and #3 now?" part at the end.
Vricken commentedon May 31, 2026
codex keeps making the app worse. First they hide the context of the model (trying to promote auto compaction as infinite context is deceptive and not useful), now I can't even send my prompts, wtf is the codex team doing. why do they keep making their own product objectively worse?
Simplereally commentedon May 31, 2026
This pisses me off so much, PLEASE do not put long prompts as 'attachments' by default - or expose a config to stop this.
VERY ANNOYING!
AkhilAniyan commentedon May 31, 2026
This is really frustrating!!!!
andkondev commentedon May 31, 2026
As a workaround, you can click on the attachment and edit it via editor but there should be an option to turn this behavior off.
xenwealthmy commentedon May 31, 2026
Same here,
previously the messed up the Context.
That was brought back,
Now this...
Is OpenAI now run by executives who only cares about how to make money?
MichaelYochpaz commentedon May 31, 2026
Also came here to complain about how annoying this is.
Please add a config option to disable this behavior.
30 remaining items
manekom2-star commentedon Jun 3, 2026
at least some improofement! cheers! but still on every prompt an extra click! why?
Glooring commentedon Jun 3, 2026
What is so hard to just place a checkbox in codex settings if we want to paste long prompts as file or not?
andkondev commentedon Jun 3, 2026
New problem. After clicking "show in text field" and deleting at least a line, all the line breaks are removed.
vrt93 commentedon Jun 3, 2026
For some reason, they find it difficult, as if they were developing the program for themselves rather than for general use.
havengg commentedon Jun 4, 2026
Yes, the updated flow still causes issues. It causes the same issues it caused before, because the problematic behavior has not changed.
The iron fact here is that "text attachments" and "inline text" yield different generation patterns in this harness, with these models. The outputs are different. It doesn't matter what any of us wishes. The fact is that the outputs are different.
If I am not indifferent over the distinction between these output patterns, then I cannot be indifferent over how the text is made available to the model.
Please, please stop disabling features that let me manage my own context windows. You are not better at it than I am.
I'm paying so much more attention to context and model performance in my own projects than you are.
I understand that casual users benefit from these tricks. I'm glad you're working on them. I'm excited for when your solutions eventually get better results than mine, as I'm sure they will.
That day is not today, and disabling my ability to manage context in anticipation of when you eventually get better at it than me is just unspeakably frustrating.
jaghachi commentedon Jun 4, 2026
I agree it's garbage. It's leaked its self in codex. Makes it impossible to review old threads.
Edit: newest extension update has the show in text field now at least!
havengg commentedon Jun 4, 2026
@nicky-oai
Observation:
The fact that this update broke a ton of high-performance workflows is pretty decisive evidence that it is not a 'safety limit' per se being enforced.
I've developed a patch that lets me continue using oversized prompts as inputs, and it has greatly improved (or, more accurately, restored) my workflows. It has not degraded them, which is what one would expect from circumvention of a valuable guardrail.
The problem here isn't which arbitrary scalar you're coding into the UI as the prompt-length cutoff. It's that you're using an arbitrary scalar at all.
Edit -- For others encountering this, the current undocumented default cutoffs appear to be:
1 to 4,999 characters: Pasted as normal
5,000 to 25,000 characters: Pasted as attachment, with option to inline.
25,001+ characters: Pasted as attachment, no option to inline.
Newlines are counted as two characters.
If your workflows previously relied on prompts over 25,000 characters I strongly recommend developing a workaround for yourself.
Execution reliability against attached files is substantially degraded in situations where the full contents of that context are directly task-informative.
mohammad-malik commentedon Jun 6, 2026
Very much in favour of either a way to turn it off, or at least a shortcut like command+option+v to override. Heavily hating this change.
mohammad-malik commentedon Jun 9, 2026
I'm sure many would rather it not force to upload as file at all actually :) an opt-out is much preferred.
We do not want an enforced limit that forces the file upload, we already have that right now.
mohammad-malik commentedon Jun 12, 2026
I really hope this is reconsidered :/
SysAdminDoc commentedon Jun 15, 2026
I can't even paste long prompts without it erroring out. They need to fix this.
mohammad-malik commentedon Jun 16, 2026
Still waiting on an update to address this :/
mohammad-malik commentedon Jun 18, 2026
They decided old versions that allowed this behaviour are no longer supported. Theyre clearly not implementing this, are they.
cbdeveloper commentedon Jul 6, 2026
Is the option to
Show in text fieldgone again? What happened?LevyBytes commentedon Nov 15, 2026
So what's the status on this now?