Skip to content

Stop streaming output on single Ctrl+C press #5837

@JayadityaGit

Description

@JayadityaGit

What would you like to be added?

I'd like to propose an enhancement to the Ctrl+C functionality to create a more intuitive and streamlined user experience.

Currently, pressing Ctrl+C once only displays a message to "press again to exit," without performing an immediate action. To stop a streaming response, the user must know to use the Esc key.

My proposal is to make a single Ctrl+C press stop the current stream, while preserving the existing behavior of exiting the application on multiple presses.

As a new user, my instinct is to use Ctrl+C to interrupt any ongoing process. This change would align the CLI with that common expectation, making it easier to remember and use. It consolidates two types of
"stop" actions (interrupting the stream and exiting the app) into a single, familiar keyboard shortcut, lowering the learning curve.

Why is this needed?

  • Improves User Experience: Aligns the application's behavior with the universal convention where Ctrl+C is used to interrupt the current running process.
  • Reduces Cognitive Load: Eliminates the need for users, especially new ones, to learn and remember a separate key (Esc) just to stop a streaming response.
  • Increases Intuitiveness: Makes the CLI feel more responsive and predictable by allowing a single, familiar shortcut to manage both stream interruption and application exit.
  • Streamlines Workflow: Consolidates related "stop" actions into one command, simplifying the user's interaction with the CLI.

Additional context

No response

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