Skip to content

Add an option to disable automatic conversion of long pasted prompts into .txt attachments #25144

Open

Description

@aurakalim-lgtm

What variant of Codex are you using?

Codex App on macOS, desktop app

What feature would you like to see?

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

Activity

  1. added
    enhancement
    on May 29, 2026
  2. added
    app
    on May 29, 2026
  3. github-actions commented on May 29, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. vinogradgarden commented on May 29, 2026

    @vinogradgarden

    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?

  5. aurakalim-lgtm commented on May 29, 2026

    @aurakalim-lgtm
    Author

    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

  6. manekom2-star commented on May 30, 2026

    @manekom2-star

    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 .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:

    1. a setting: “Auto-convert long pasted text to attachments: On / Off”
    2. a paste action: “Paste as text” / “Paste as attachment”
    3. 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.

  7. manekom2-star commented on May 30, 2026

    @manekom2-star

    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.

  8. LevyBytes commented on May 30, 2026

    @LevyBytes

    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

      "extensions.autoUpdate": false,
      "extensions.autoCheckUpdates": false
    

    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.

  9. andkondev commented on May 30, 2026

    @andkondev

    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.

  10. Vricken commented on May 31, 2026

    @Vricken

    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?

  11. Simplereally commented on May 31, 2026

    @Simplereally

    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!

  12. AkhilAniyan commented on May 31, 2026

    @AkhilAniyan

    This is really frustrating!!!!

  13. andkondev commented on May 31, 2026

    @andkondev

    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.

  14. xenwealthmy commented on May 31, 2026

    @xenwealthmy

    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?

  15. MichaelYochpaz commented on May 31, 2026

    @MichaelYochpaz

    Also came here to complain about how annoying this is.
    Please add a config option to disable this behavior.

  16. 30 remaining items

  17. manekom2-star commented on Jun 3, 2026

    @manekom2-star

    You were asked to turn this feature off, but you made it require an extra click. Where's the logic in that?

    at least some improofement! cheers! but still on every prompt an extra click! why?

  18. Glooring commented on Jun 3, 2026

    @Glooring

    What is so hard to just place a checkbox in codex settings if we want to paste long prompts as file or not?

  19. andkondev commented on Jun 3, 2026

    @andkondev

    New problem. After clicking "show in text field" and deleting at least a line, all the line breaks are removed.

    Image
  20. vrt93 commented on Jun 3, 2026

    @vrt93

    What is so hard to just place a checkbox in codex settings if we want to paste long prompts as file or not?

    For some reason, they find it difficult, as if they were developing the program for themselves rather than for general use.

  21. havengg commented on Jun 4, 2026

    @havengg

    Hi everyone,

    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.

  22. jaghachi commented on Jun 4, 2026

    @jaghachi

    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!

  23. havengg commented on Jun 4, 2026

    @havengg

    @nicky-oai

    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.

  24. mohammad-malik commented on Jun 6, 2026

    @mohammad-malik

    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.

  25. mohammad-malik commented on Jun 9, 2026

    @mohammad-malik

    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.

  26. mohammad-malik commented on Jun 12, 2026

    @mohammad-malik

    I really hope this is reconsidered :/

  27. SysAdminDoc commented on Jun 15, 2026

    @SysAdminDoc

    I can't even paste long prompts without it erroring out. They need to fix this.

  28. mohammad-malik commented on Jun 16, 2026

    @mohammad-malik

    Still waiting on an update to address this :/

  29. mohammad-malik commented on Jun 18, 2026

    @mohammad-malik

    They decided old versions that allowed this behaviour are no longer supported. Theyre clearly not implementing this, are they.

  30. cbdeveloper commented on Jul 6, 2026

    @cbdeveloper
    Image

    Is the option to Show in text field gone again? What happened?

    Version 26.623.101652 • Released Jul 3, 2026

  31. LevyBytes commented on Nov 15, 2026

    @LevyBytes

    So what's the status on this now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions