Skip to content

Hitting Ctrl+C once should interrupt the model and give you a chance to redirect it #1244

Closed

Description

@bolinfest

Currently, hitting Ctrl+C interrupts the model in the Rust TUI, but if you submit another message, the model is generally confused and you cannot actually continue your conversation with new instructions. I believe this is because there is almost always inevitably a tool call outstanding when this happens and when the user hits Ctrl+C, we just fail to respond.

I believe this is because we need to respond with "aborted" along the lines of:

return {
outputText: "aborted",
metadata: {},
additionalItems: [
{
type: "message",
role: "user",
content: [{ type: "input_text", text: note }],
},
],
};

so that the model has a response to the tool call, after which it will consider the next user message.

/cc @fouad-openai to confirm this

See also: #1245.

Activity

  1. self-assigned this
    on Jun 24, 2025
  2. gpeal commented on Jun 24, 2025

    @gpeal
    Contributor

    [ ] ctrl + c shouldn't abort the session
    [ ] Look at the session json and maybe store more on state

  3. added a commit that references this issue on Jun 26, 2025
    a339a7b
  4. added a commit that references this issue on Aug 11, 2025
    4b6dbac
  5. added a commit that references this issue on Sep 1, 2025
    49f19ce
  6. added a commit that references this issue on Sep 9, 2025
    ad717ba
  7. added a commit that references this issue on Jun 10, 2026
    5ffec68
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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