copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

Add a `/pause` or `/stop` slash command to gently interrupt an agent

Open logar16 opened this issue 6 months ago • 3 comments

Describe the feature or problem you'd like to solve

I want a way to gently interrupt an agent the next time it finishes reasoning. I hate canceling it mid-reasoning, but sometimes I need it to pause so we can talk.

Proposed solution

There are times when Copilot is doing lots of reasoning and moving really quick. I want it to just pause, so I can get some context of what's going on or take a moment to think through what's going on. I don't need it to cancel and just be stopped and cut off mid-reasoning token. I also don't always need to just give it a nudge. And it feels a little bit weird to send a response of "stop" that the LLM then has to reason about to stop. If we added a /stop or /pause it could just stop copilot at the next time it tries to take an action. It can complete it's thought so it's in the context of the conversation, but I can then resume control. By me responding, it can go back to work. Not sure if you need any other command to resume (probably not?).

Example prompts or workflows

No response

Additional context

No response

logar16 avatar May 12 '26 19:05 logar16

I would also like this feature.

absolutelysimon avatar Oct 19 '26 02:10 absolutelysimon

A try at pinning down what "pause" should mean, since it sits between the two things we have today:

When it stops What's kept
Esc / cancel right now, mid-token or mid-tool whatever was finished
pause at the next step boundary: the current thought or tool call finishes, the next one doesn't start the whole finished step, in context
a "stop" message whenever the model reads it and decides to depends on the model

A few small choices that would make it feel right:

  1. Ack right away. Show "Pausing after this step…" the moment it's pressed, so you don't press it three times.
  2. A long tool call isn't cut. If a 2-minute test run is going, pause waits for it. Esc is still there if you need it now.
  3. Your next message resumes. No /resume needed, as the issue suggests. An empty Enter could mean "carry on as planned".
  4. A key, not only a slash command. While the agent is busy, typing /pause means the input box has to be free. A shortcut (or Esc once = pause, twice = stop) avoids that.

Smallest first version: 1 and 3 with a slash command. The rest can follow.

balabommablock-cpu avatar Oct 26 '26 03:10 balabommablock-cpu