Codex TUI quits when long markdown doc is pasted

Resolved 💬 4 comments Opened Jul 2, 2025 by salman1993 Closed Jul 17, 2025
💡 Likely answer: A maintainer (bolinfest, collaborator) responded on this thread — see the highlighted reply below.

What version of Codex is running?

0.2.0

Which model were you using?

codex-mini-latest

What platform is your computer?

MacOS

What steps can reproduce the bug?

Run Codex CLI (rust) and paste in the prompt. I use iTerm2 and tried pasting a few different ways:

  • with Cmd + V
  • with mouse right click & paste
  • Holding Option key (Alt) & then pasting

It works for me when I paste small text but fails for the attached prompt. It might not be the length since I also tried 25 paragraphs of Lorem Ipsum text and that worked (so my guess would be special escape characters?)

codex-fail-prompt.txt

What is the expected behavior?

_No response_

What do you see instead?

Codex pastes some code and quits abruptly

Additional information

_No response_

View original on GitHub ↗

4 Comments

kingdomseed · 1 year ago

It also fails on copy/paste operations for me.

bolinfest collaborator · 1 year ago

Please try 0.3.0:

https://github.com/openai/codex/releases/tag/rust-v0.3.0

Also available via npm:

https://www.npmjs.com/package/@openai/codex

I'm still waiting for Homebrew to pick up the new version.

bolinfest collaborator · 1 year ago
bolinfest collaborator · 1 year ago

As noted, I believe this is fixed. Please file a new issue if this is not the case.