What version of Codex is running?
0.87.0
What subscription do you have?
plus
Which model were you using?
gpt-5.2-codex
What platform is your computer?
Linux 5.4.0-65-generic x86_64 x86_64
What terminal emulator and version are you using (if applicable)?
alacrity
What issue are you seeing?
Codex CLI fails to read keyboard input over SSH, immediately suspending with SIGTTIN (exit code 149). The TUI displays but immediately returns to shell with zsh: suspended (tty input) and a leaked escape sequence character [.
What steps can reproduce the bug?
- SSH to a remote Linux server (Ubuntu 20.04, kernel 5.4.0-65-generic x86_64)
- Shell: zsh, TERM: alacritty or xterm-256color
- Run
codex
- TUI appears briefly, then immediately suspends with no user input
$ codex
╭──────────────────────────────────────────────────╮
│ >_ OpenAI Codex (v0.87.0) │
│ ... │
╰──────────────────────────────────────────────────╯
› %
[
zsh: suspended (tty input) codex
$ echo $?
149 # 128 + 21 = SIGTTIN
What is the expected behavior?
Codex TUI should accept keyboard input normally over SSH, as it does in v0.6.1 and earlier.
Additional information
- v0.60.1: works ✓
- v0.70.1+: broken ✗
- Claude Code and Gemini CLI work fine on the same setup
- Workarounds attempted (none worked for v0.71.0+):
script -q /dev/null -c codex
printf '\e[?2004l' (disable bracketed paste)
- Running outside tmux
- Environment: SSH to Ubuntu 20.04, NFS home directory, zsh
What version of Codex is running?
0.87.0
What subscription do you have?
plus
Which model were you using?
gpt-5.2-codex
What platform is your computer?
Linux 5.4.0-65-generic x86_64 x86_64
What terminal emulator and version are you using (if applicable)?
alacrity
What issue are you seeing?
Codex CLI fails to read keyboard input over SSH, immediately suspending with
SIGTTIN(exit code 149). The TUI displays but immediately returns to shell withzsh: suspended (tty input)and a leaked escape sequence character[.What steps can reproduce the bug?
codexWhat is the expected behavior?
Codex TUI should accept keyboard input normally over SSH, as it does in v0.6.1 and earlier.
Additional information
script -q /dev/null -c codexprintf '\e[?2004l'(disable bracketed paste)