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
Pasting multi-line text in Codex CIL only keeps first line and auto-submits on Windows #2137
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
Reacted by Marius Mercier, Nuno Nunes, Gili Tzabari, Evgeny, Gustavo Hennig, Pavle Dujkic, Nicolas Laurito, Daniel Lovell, nikolay-anisimov, Rohit and 31 more
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
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.
Reacted by reponemec, Ahmed, Mikhail Merkulov and Morris
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.
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.
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.
Activity
[-]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[/+]evgenyop commentedon Aug 15, 2025
Please prioritise this issue if you can, it keeps being a major problem for me.
pavledujkic commentedon Aug 15, 2025
Would be a big QOL.
Zamaroht commentedon Aug 16, 2025
This is the most pressing usabiltiy quirk I'm finding after the 0.22.0 update
daniellovell commentedon Aug 17, 2025
+1, major issue.
rohitsathish commentedon Aug 19, 2025
Would scaling back to a previous version resolve this?
evgenyop commentedon Aug 19, 2025
There is no previous version - this issue exists since the first official Windows build.
ssampathinfraredx commentedon Aug 20, 2025
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.
att3 commentedon Aug 20, 2025
PUMP!
vettukal commentedon Aug 26, 2025
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.
craigvc commentedon Sep 1, 2025
codex is miles behind claude!
evgenyop commentedon Sep 2, 2025
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.
aibrahim-oai commentedon Sep 9, 2025
Should be fixed on the latest version
36 remaining items
willenigma commentedon Mar 10, 2026
Thanks, it works like a charm. 非常感谢,效果很好。
bodiam commentedon Apr 19, 2026
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.
fix(tui): use shared paste burst interval on Windows (#18914)
Mike-7777777 commentedon May 5, 2026
It's so cool we have this issue in May 2026, let's go guys!
fix(tui): use shared paste burst interval on Windows (openai#18914)
yg-i commentedon Jun 26, 2026
Problem still exists as of codex-cli 0.142.2
bodiam commentedon Jun 26, 2026
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.
fix(tui): increase paste burst char interval on Windows to 30ms (open…
fix(tui): use shared paste burst interval on Windows (openai#18914)
ImJustChew commentedon Oct 21, 2026
No, they are definitely using Codex to develop this software; the bug still exists in v0.163.0