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

[vscode][editor] Update Editor for In-Progress Execution while Editor is Not Rendered #1298

Open
rholinshead opened this issue Feb 22, 2024 · 0 comments

Comments

@rholinshead
Copy link
Contributor

Currently in the VS Code extension, toggling away from the editor while a prompt is running and then toggling back before it has completed will result in the UI showing no prompts as running and not updating with the prompt outputs as it streams or when it completes (note, reloading after completion will show the latest updates due to /load of updated config).

This is because our only connection with the prompt stream/response on the editor is the callbacks for the run request. We can improve this so that toggling back shows the prompt in progress (and potentially the current outputs) by:

  • updating the editor server implementation to keep track of the running prompts (by name)
  • adding an endpoint, e.g. /running_prompts to the server to return this information to the requestor
  • updated editor client to leverage the endpoint to initialize the state with running prompt state
@rholinshead rholinshead changed the title [vscode[[editor] Update Editor for In-Progress Execution while Editor is Not Rendered [vscode][editor] Update Editor for In-Progress Execution while Editor is Not Rendered Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant