Skip to content

Pressing "Ctl + T" while entering prompt permanently breaks keyboard input to codex (zsh: suspended (tty input) codex) #5195

Closed

Description

@mason-spong

What version of Codex is running?

codex-cli 0.46.0

Which model were you using?

gpt-5-codex

What platform is your computer?

Darwin 24.3.0 arm64 arm

What steps can reproduce the bug?

Start codex by entering "codex" in command line (I am using ghostty)

When in the prompt entry input press "Ctl + t"

Observe that codex gets backgrounded and you can no longer type in terminal without control printouts.

After that if you try to launch codex it immediately prints out:

mason ~ % codex
zsh: suspended (tty input)  codex
                                 %                                                                                                                                                                                                                                                                                                                                                     mason ~ % 10;rgb:ffff/ffff/ffff
mason ~ % 11;rgb:2828/2c2c/3434

I cannot recover codex from this state. I can check jobs (by copy paste as can't type in terminal), foreground them or kill codex but same issue happens next time I launch. I tried reinstalling codex as well as ghostty and had same issues. I tried restarting computer, no help. I logged out of codex with "codex logout", and that allowed me to go through the logout flow, but when I logged back in I get the same issue.

No other CLI apps on my computer have this issue with input, it seems like a codex cli bug

What is the expected behavior?

I was trying to get into the "Transcript mode"

What do you see instead?

I see that codex immediately suspends itself every time I try to use it

Additional information

No response

Activity

  1. added
    bug
    on Oct 15, 2025
  2. mason-spong commented on Oct 15, 2025

    @mason-spong
    Author

    These issues are sort of similar in that they all leak some terminal strings that apparently have to do with colors (e.g. "11;rgb:2828/2c2c/3434"), but none of them are about pressing "ctl + t" in prompt and from then on being totally unable to use codex due to instant zsh: suspended (tty input) codex

  3. sboden commented on Oct 15, 2025

    @sboden

    ctrl-t is special. Quick fix after your state; run "fg" command (foreground), and you will be good to go... but ctrl-t will get you suspended again.

    You can disable the ctrl-t binding by putting "bindkey -r '^T'" in your .zshrc

  4. mason-spong commented on Oct 15, 2025

    @mason-spong
    Author

    @sboden unfortunately this did not fix it, still getting the same issue:

    Screen.Recording.2025-10-15.at.6.05.33.AM.mov
  5. added
    TUI
    on Nov 15, 2025
  6. etraut-openai commented on Jan 10, 2026

    @etraut-openai
    Contributor

    Closing old issue.

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

    TUIbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions