Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chat: add a pause button for agent mode #238735

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

connor4312
Copy link
Member

There is a new ChatParticipant.onDidChangePauseState event that allows
the editor to signal requests should be paused or unpaused.

In agentic mode, a "pause" button is visible in the editor that surfaces
to this event. It's up to the LM to respect it. When paused, actions go
to their "idle" state, so new messages can be written which implicitly
cancel the previous request, following PR earlier today.

This solves Kai's request of wanting to pause and see what the model is
doing before continuing, as well as my desire to be able to interrupt
and hint to the model when it gets off track, although that might
ideally evolve to some other 'hint' vs a cancelled and new request.

PR for copilot coming later this evening.

There is a new `ChatParticipant.onDidChangePauseState` event that allows
the editor to signal requests should be paused or unpaused.

In agentic mode, a "pause" button is visible in the editor that surfaces
to this event. It's up to the LM to respect it. When paused, actions go
to their "idle" state, so new messages can be written which implicitly
cancel the previous request, following PR earlier today.

![](https://memes.peet.io/img/25-01-b61af958-1390-4143-9e09-cef99b2edb86.png)

This solves Kai's request of wanting to pause and see what the model is
doing before continuing, as well as my desire to be able to interrupt
and hint to the model when it gets off track, although that might
ideally evolve to some other 'hint' vs a cancelled and new request.

PR for copilot coming later this evening.
@connor4312 connor4312 self-assigned this Jan 25, 2025
@vs-code-engineering vs-code-engineering bot added this to the January 2025 milestone Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants