Codex TUI quits when long markdown doc is pasted

Resolved 💬 4 comments Opened Jul 2, 2025 by salman1993 Closed Jul 17, 2025

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 ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗