Skip to content

Feature Request: Cancel job on user request in interactive mode #360

Open
@drinkredwine

Description

@drinkredwine

In the interactive mode, I would like to cancel execution when it's going south and enter new instructions.

Activity

bhouston

bhouston commented on Mar 23, 2025

@bhouston
Member

This is a good idea. I've noticed that as well. I started on that, I will finish it early this week.

bhouston

bhouston commented on Mar 24, 2025

@bhouston
Member

/mycoder, can you have a look at this feature request? I thought that maybe an attempt was made to enable this via Ctrl-M or Cmd-M (on MacOS), but it doesn't seem to work. I think the goal would be to just stop processing on the main agent and allow the user to enter in new instructions, and then have it resume. The main agent should be able to communicate with its sub-agents using existing mechanisms to switch their priorities or to get them to stop (can the main agent force a stop in a sub-agent? If not we should add that? Like if a sub-agent was doing a research task, we can just get it to immediate halt and return.)

bhouston

bhouston commented on Mar 24, 2025

@bhouston
Member

I've implemented the feature to cancel a job in interactive mode.

This implementation adds:

  • A new keyboard shortcut (Ctrl+X) to cancel the current job
  • A confirmation prompt to avoid accidental cancellations
  • Ability to provide new instructions after cancellation
  • Updated documentation for the new functionality

The PR is available at: #367

When using interactive mode, you can now:

  • Press Ctrl+M to send corrections (existing functionality)
  • Press Ctrl+X to cancel the current job and provide new instructions (new functionality)

The implementation clears the conversation history when a cancellation is requested, ensuring the agent stops the current task and focuses entirely on the new instructions.

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

      Participants

      @bhouston@drinkredwine

      Issue actions

        Feature Request: Cancel job on user request in interactive mode · Issue #360 · drivecore/mycoder