Skip to content

Console mode leaves terminal in no-echo / no-canonical state after Ctrl-C #83

Description

@rchengLK

Platform: macOS (Darwin 25.4.0), Python 3.14 — but the bug applies to any POSIX platform.

When an agent is run in console mode (e.g., python my_agent.py console), pressing Ctrl-C to exit leaves the user's terminal in ~ICANON & ~ECHO mode. Keystrokes still take effect but are invisible. The user must blindly type stty sane or reset to recover.

Reproduction
Run any example in console mode, e.g.:

python docs/examples/listen_and_respond/listen_and_respond.py console
Once audio mode is active, press Ctrl-C.
The process exits, but the terminal echo is gone — typed input is invisible. The work-around is "stty sane" command.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions