You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TTY input fails over SSH with SIGTTIN (regression in v0.71.0+) #9559
CLIIssues related to the Codex CLITUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't working
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
changed the title [-]TTY input fails over SSH with SIGTTIN (regression in v0.7.0+)[/-][+]TTY input fails over SSH with SIGTTIN (regression in v0.71.0+)[/+]on Jan 21, 2026
Those versions are pretty old at this point. We haven't received other reports of this problem. Do you have any non-default settings in your config.toml?
Those versions are pretty old at this point. We haven't received other reports of this problem. Do you have any non-default settings in your config.toml?
CLIIssues related to the Codex CLITUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't working
Activity
etraut-openai commentedon Jan 20, 2026
You mentioned version 0.7.0 and 0.6.1. Those don't correspond to Codex CLI version numbers. Can you clarify?
dongdongbh commentedon Jan 21, 2026
I tested that 0.71.0 and 0.75.0 do not work, but 0.60.1 works.
[-]TTY input fails over SSH with SIGTTIN (regression in v0.7.0+)[/-][+]TTY input fails over SSH with SIGTTIN (regression in v0.71.0+)[/+]etraut-openai commentedon Jan 21, 2026
Those versions are pretty old at this point. We haven't received other reports of this problem. Do you have any non-default settings in your config.toml?
dongdongbh commentedon Jan 21, 2026
cat ~/.codex/config.toml
dongdongbh commentedon Jan 21, 2026
Root cause identified:
shell_snapshot = truein config causes the TTY issue.Disabling this feature resolves the problem on v0.87.0.
Likely a race condition or process group issue when
shell_snapshot spawns a subprocess over SSH.
core: prevent shell_snapshot from inheriting stdin (openai#9735)
core: prevent shell_snapshot from inheriting stdin (#9735)
Merge upstream and adopt Kontext PKCE integration flow (#2)
core: prevent shell_snapshot from inheriting stdin (openai#9735)