Skip to content

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

@dongdongbh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLITUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions