Skip to content

CLI cancelling agent when no keyboard input #10049

@genixpro

Description

@genixpro

What version of Codex is running?

0.92.0

What subscription do you have?

Pro

Which model were you using?

gpt-5.2-codex

What platform is your computer?

Darwin 25.2.0 arm64 arm

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

just vanilla macos terminal Version 2.15 (466)

What issue are you seeing?

The CLI is causing the agent processing to be cancelled even though i didn't type in anything or press Escape or intend to cause the agent to stop in any way.

What steps can reproduce the bug?

Uploaded thread: 019c0291-59b3-7ea2-b2a0-2e604863ad24

On my computer, it happens about 50% of the time when i switch from a different window into the macos terminal while the codex agent is running. I think it might be keyboard scroll events? there are some weird characters that get insertted into the terminal when this happens. I see stuff like "› [O[O[O[I[O" often when i switch into the terminal while codex is running.

What is the expected behavior?

Able to switch to and from the Codex window without the agent stopping its work - so I can monitor what its doing without interrupting it.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIIssues 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