Skip to content

Suspending codex-cli 0.142.5 (with Ctrl-Z) in kitty 0.32.2 leaves the terminal completely unusable #31013

Description

@pberndt

What version of Codex CLI is running?

codex-cli 0.142.5

What subscription do you have?

Pro

Which model were you using?

gpt-5.5

What platform is your computer?

Ubuntu noble

What terminal emulator and version are you using (if applicable)?

kitty 0.32.2

Codex doctor report

What issue are you seeing?

──────────────────────────────────────────────╮
│ >_ OpenAI Codex (v0.142.5) │
│ │
│ model: gpt-5.5 medium /model to change │
│ directory: /tmp/tmp │
╰──────────────────────────────────────────────╯

Tip: New Use /fast to enable our fastest inference with increased plan usage.

• You have 4 usage limit resets available. Run /usage to use one.

› Use /skills to list available skills

gpt-5.5 medium · /tmp/tmp
[1]+ Stopped codex
$ 2::121;133:3u

Note garbage after the $ prompt on the last line. Every key press will generate more.

What steps can reproduce the bug?

Open kitty terminal emulator.
Run codex v0.142.5
Suspend codex session with Ctrl-Z
=> Your terminal is unusable

What is the expected behavior?

The terminal is in a defined (text) state, where e.g. shell commands can be entered.

Additional information

No response

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

    Fields

    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