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

Resolved 💬 5 comments Opened Oct 15, 2025 by mason-spong Closed Jan 10, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

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_

View original on GitHub ↗

5 Comments

github-actions[bot] contributor · 10 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #5107
  • #4960
  • #4759
  • #4749

Powered by Codex Action

mason-spong · 10 months ago

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

sboden · 10 months ago

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

mason-spong · 10 months ago

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

https://github.com/user-attachments/assets/9c95e062-a7d7-4451-ae98-e711f7ea1660

etraut-openai contributor · 7 months ago

Closing old issue.