Repository navigation
feat(chat): look into a background shell from the status menu - #488
Merged
Merged
Conversation
Contributor
|
🎉 This PR is included in version 0.63.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A background shell a chat is waiting on can now be looked into. Picking a
shellentry under a chat in the agent status menu opens a dialog with the command, its status and what it has printed so far, refreshed every two seconds. Before, picking it only reopened the same chat.The output is read from the worker that runs the shell, so it works for a chat on this computer and for one on a workspace.
Changes
backend/src/workspaces.rs-list_background_jobscommand: sends the CLI'slist_taskspanel frame for the session and parses thetasksanswer.artifact_frameis renamedsession_framenow that it serves both.backend/src/agent.rs-BackgroundJobgainsoutput, which only thetasksanswer carries.frontend/components/ShellOutputDialog.tsx- the dialog and its polling hook.frontend/components/StatusBar.tsx- a shell entry opens the dialog and is namedView shell <command>.e2e-background-shell-outputtest and scenario. The button finder now also matches menu buttons and menu items, which the status menu surfaces as.AGENTS.md-View shell <command>added to the DOM contract.Not included: stopping a shell from the dialog (the CLI has
cancel_taskfor it), and looking into a shell after it has finished - its note in the transcript covers that.No CLI change needed. Affected repos:
desktoponly. Docs follow-up: inference-gateway/docs#1162.