Skip to content

Pasting multi-line text in Codex CIL only keeps first line and auto-submits on Windows #2137

Closed

Description

@stryio

What version of Codex is running?

v0.20.0

Which model were you using?

No response

What platform is your computer?

Windows

What steps can reproduce the bug?

When pasting multi-line text into the Codex CIL chat input box, the input field does not handle line breaks properly.

Steps to Reproduce

Open the Codex CIL chat input box.

Copy a multi-line snippet (e.g., three lines of text).

Paste it into the input box.

Observed Behavior

Only the first line is shown in the input box.

The presence of a line break in the pasted content immediately triggers a “submit” action, sending the conversation automatically.

Impact
This prevents users from pasting multi-line commands, code blocks, or structured text,.

What is the expected behavior?

All pasted lines should remain in the input box.

The user should be able to edit and review before sending.

What do you see instead?

No response

Additional information

No response

Activity

  1. added
    bug
    on Aug 10, 2025
  2. changed the title [-]Pasting multi-line text in Codex CIL only keeps first line and auto-submits[/-] [+]Pasting multi-line text in Codex CIL only keeps first line and auto-submits on Windows[/+] on Aug 11, 2025
  3. added
    windows-os
    on Aug 12, 2025
  4. evgenyop commented on Aug 15, 2025

    @evgenyop

    Please prioritise this issue if you can, it keeps being a major problem for me.

  5. pavledujkic commented on Aug 15, 2025

    @pavledujkic

    Would be a big QOL.

  6. Zamaroht commented on Aug 16, 2025

    @Zamaroht

    This is the most pressing usabiltiy quirk I'm finding after the 0.22.0 update

  7. daniellovell commented on Aug 17, 2025

    @daniellovell

    +1, major issue.

  8. rohitsathish commented on Aug 19, 2025

    @rohitsathish

    This is the most pressing usabiltiy quirk I'm finding after the 0.22.0 update @Zamaroht

    Would scaling back to a previous version resolve this?

  9. evgenyop commented on Aug 19, 2025

    @evgenyop

    This is the most pressing usabiltiy quirk I'm finding after the 0.22.0 update @Zamaroht

    Would scaling back to a previous version resolve this?

    There is no previous version - this issue exists since the first official Windows build.

  10. ssampathinfraredx commented on Aug 20, 2025

    @ssampathinfraredx

    I figure out a temporry fix for this - paste into chatgpt.com or desktop app but not the cli- "keep all context & condense it into a dense LLM readable ( does not have to be human readable form) in 1 line without line break" followed by the text - doesn't matter how long it is, the output might ben 100s of words, but without the line break, it still gets pasted on codex cli. Hopethis helps until they bring us an update soon.

  11. att3 commented on Aug 20, 2025

    @att3

    PUMP!

  12. vettukal commented on Aug 26, 2025

    @vettukal

    Please prioritize this as I have stopped using codex because of this annoying issue. Its more than QoL issue, codex is a no go till this is fixed.

  13. craigvc commented on Sep 1, 2025

    @craigvc

    codex is miles behind claude!

  14. evgenyop commented on Sep 2, 2025

    @evgenyop

    codex is miles behind claude!

    I disagree. I compare them from time to time - Codex's model response quality is by far better, so I prefer it for the type of large codebases that I work with. And patiently waiting for the UI shortcomings to be all eventually resolved one by one. Now, the Windows build is very solid, I stopped running it in WSL.

  15. aibrahim-oai commented on Sep 9, 2025

    @aibrahim-oai
    Contributor

    Should be fixed on the latest version

  16. 36 remaining items

  17. willenigma commented on Mar 10, 2026

    @willenigma

    我用codex写了一个程序,直接用快捷键就可以完美粘贴多行文本

    不需要修改codex源码

    下载,配置环境变量即可使用

    还有更多配置,可以精确粘贴,净化掉首尾空行等,快来体验啊啊啊啊 github/codex-cli-multiline-paster

    I wrote a program using Codex that allows me to perfectly paste multiple lines of text using shortcut keys

    ##No need to modify the codex source code

    ##Download and configure environment variables to use

    There are more configurations available, such as precise pasting and purification of leading and trailing lines. Come and experience them now

    Thanks, it works like a charm. 非常感谢,效果很好。

  18. bodiam commented on Apr 19, 2026

    @bodiam

    I'm trying to switch from Claude Code to Codex, and while Claude never has an issue with line breaks, Codex (and also OpenCode) do. I'm on codex-cli 0.121.0, and pasting just a bit of text with linebreaks will already submit the text. Would be great if this could be resolved.

    PS: Note sure why this issue is closed, but it's not resolved, #9348 does not solve this.

  19. Mike-7777777 commented on May 5, 2026

    @Mike-7777777

    It's so cool we have this issue in May 2026, let's go guys!

  20. yg-i commented on Jun 26, 2026

    @yg-i

    Problem still exists as of codex-cli 0.142.2

  21. bodiam commented on Jun 26, 2026

    @bodiam

    Yes, I don't think OpenAI folks are using Codex to develop software. I find that especially when the copied text starts with an empty line it breaks things. It's not the only cause, but I think there's a very high chance it will break.

  22. added 2 commits that reference this issue on Jun 27, 2026
    03a36dc
    880b4a8
  23. ImJustChew commented on Oct 21, 2026

    @ImJustChew

    Yes, I don't think OpenAI folks are using Codex to develop software.

    No, they are definitely using Codex to develop this software; the bug still exists in v0.163.0

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

    bugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions