What version of Codex is running?
Which model were you using?
What platform is your computer?
- CachyOS Linux, x86_64
- Kernel 7.1.4-1-cachyos
- Ghostty 1.3.1-arch2.1
- zsh 5.9.2
What issue are you seeing?
Every time I close the interactive Codex TUI and return to zsh, a raw fragment is inserted at the shell prompt:
It prefixes whatever I type next. For example:
This resembles the visible tail of a CSI-u / Kitty enhanced-keyboard event, likely the Ctrl+D key-release encoding. Codex appears to hand the terminal back to zsh before that event is fully consumed or the keyboard mode is restored.
Steps to reproduce
- Open Ghostty with zsh.
- Run codex.
- Exit the Codex TUI.
- Start typing the next shell command.
Expected behavior
The zsh prompt receives no bytes from the Codex session, and the next command can be typed normally.
Actual behavior
The next command is prefixed with 0;5:3u on every exit.
Related reports
The earlier keyboard-reset fix in #19625 does not appear to cover this Ghostty/Linux exit path.
What version of Codex is running?
Which model were you using?
What platform is your computer?
What issue are you seeing?
Every time I close the interactive Codex TUI and return to zsh, a raw fragment is inserted at the shell prompt:
It prefixes whatever I type next. For example:
This resembles the visible tail of a CSI-u / Kitty enhanced-keyboard event, likely the Ctrl+D key-release encoding. Codex appears to hand the terminal back to zsh before that event is fully consumed or the keyboard mode is restored.
Steps to reproduce
Expected behavior
The zsh prompt receives no bytes from the Codex session, and the next command can be typed normally.
Actual behavior
The next command is prefixed with 0;5:3u on every exit.
Related reports
9;5:3u#19553...uescape-sequence fragments inserted into shell after abnormal SSH disconnect during Codex session #16517The earlier keyboard-reset fix in #19625 does not appear to cover this Ghostty/Linux exit path.