Skip to content

Codex TUI quits when long markdown doc is pasted #1451

Closed

Description

@salman1993

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

Activity

  1. added
    bug
    on Jul 2, 2025
  2. changed the title [-]Codex TUI quits when long text is pasted[/-] [+]Codex TUI quits when long markdown doc is pasted[/+] on Jul 2, 2025
  3. kingdomseed commented on Jul 7, 2025

    @kingdomseed

    It also fails on copy/paste operations for me.

  4. bolinfest commented on Jul 8, 2025

    @bolinfest
    Collaborator
  5. bolinfest commented on Jul 8, 2025

    @bolinfest
    Collaborator

    FYI, 0.3.0 is in Homebrew now: Homebrew/homebrew-core#229365

  6. bolinfest commented on Jul 17, 2025

    @bolinfest
    Collaborator

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

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions