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

Add the ability to reopen chat stream after successful response #211136

Open
robconery opened this issue Apr 23, 2024 · 4 comments
Open

Add the ability to reopen chat stream after successful response #211136

robconery opened this issue Apr 23, 2024 · 4 comments
Assignees
Labels
api chat feature-request Request for new features or functionality
Milestone

Comments

@robconery
Copy link

robconery commented Apr 23, 2024

I have been working with @isidorn on a chat extension and I'm finding that I need to re-open the chat stream so I can update the user on the results of their message.

For instance: the user asks Copilot for help on a topic. I'm augmenting the prompt and sending. When I receive the reply, I'm extracting code that I then execute, but only after the user clicks a button that I output to the chat window, which explicitly says "Run This". I want to report back the results of execution, but currently the only way I can do that is via popups, which is out of the flow of the chat.

Ideally, I could re-open the chat stream so I can send the results and also add a stream.progress when the execution goes off (or show an error if there was one). The follow up provider doesn't quite fit the scenario as the process is a bit more interactive.

@isidorn
Copy link
Contributor

isidorn commented Apr 24, 2024

So the ask is to be able to report progress in the chat even when not in the process of responding to the prompt. Do we have some alternative suggestion how extension authors can achieve this?

fyi @roblourens

@jrieken jrieken added feature-request Request for new features or functionality api chat labels Apr 24, 2024
@jrieken jrieken added this to the Backlog milestone Apr 24, 2024
@jrieken
Copy link
Member

jrieken commented Apr 24, 2024

Understood and supportive. I believe re-opening isn't the best way to achieve this because it being closed marks the end of this reply. What we have been considering is some kind of "continuation button" that doesn't run a vscode.Command-command but appends and submits another message to the current chat. That would allow a participant to reply to "itself"

@jrieken jrieken modified the milestones: Backlog, On Deck Apr 24, 2024
@roblourens
Copy link
Member

Agreed, and we'd like to have real API/UX for this but you could get a similar effect today by calling back to yourself with executeCommand('workbench.action.chat.open', { query: ... })

@cjlapao
Copy link

cjlapao commented Jun 7, 2024

I would also like something similar to this. In our example, we might have a long-running execution, or we might need to ask if the user wants to execute something else in the same context. Currently, we are achieving the same thing with dialogs being sent to the user, but that seems to disrupt the flow of the chat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api chat feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

7 participants