Skip to content

TTY input fails over SSH with SIGTTIN (regression in v0.71.0+) #9559

Closed

Description

@dongdongbh

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?

  1. SSH to a remote Linux server (Ubuntu 20.04, kernel 5.4.0-65-generic x86_64)
  2. Shell: zsh, TERM: alacritty or xterm-256color
  3. Run codex
  4. 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
Image

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

Activity

  1. added
    bug
    on Jan 20, 2026
  2. added
    CLI
    TUI
    on Jan 20, 2026
  3. etraut-openai commented on Jan 20, 2026

    @etraut-openai
    Contributor

    You mentioned version 0.7.0 and 0.6.1. Those don't correspond to Codex CLI version numbers. Can you clarify?

  4. dongdongbh commented on Jan 21, 2026

    @dongdongbh
    Author

    You mentioned version 0.7.0 and 0.6.1. Those don't correspond to Codex CLI version numbers. Can you clarify?

    I tested that 0.71.0 and 0.75.0 do not work, but 0.60.1 works.

  5. 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
  6. etraut-openai commented on Jan 21, 2026

    @etraut-openai
    Contributor

    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?

  7. dongdongbh commented on Jan 21, 2026

    @dongdongbh
    Author

    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?

    cat ~/.codex/config.toml

    model = "gpt-5.2-codex"
    model_reasoning_effort = "high"
    
    web_search_request = true
    
    
    [features]
    web_search_request = true
    shell_snapshot = true
    
    [shell_environment_policy]
    ignore_default_excludes = true
    experimental_use_profile = true
    
    [sandbox_workspace_write]
    network_access = true
    
    [notice]
    hide_rate_limit_model_nudge = true
    
    [projects."/home/xxx/code/vru"]
    trust_level = "trusted"
    
  8. dongdongbh commented on Jan 21, 2026

    @dongdongbh
    Author

    Root cause identified:
    shell_snapshot = true in 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.

  9. added a commit that references this issue on Jan 30, 2026
    9008a0e
  10. added a commit that references this issue on Feb 2, 2026
    df5207d
  11. added a commit that references this issue on Feb 7, 2026
    ca87185
  12. added a commit that references this issue on Feb 27, 2026
    3e3d489
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

    CLITUIbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions