Repository navigation
feat(chat): move an existing chat to a workspace and back - #428
Merged
Merged
Conversation
Move to workspace in a chat composer teleports the session to a workspace of the daemon or back to this computer, showing each stage. Where a chat runs is saved with the sidebar state, and any chat on a workspace shows in the Computers view. Closes #427
Contributor
|
🎉 This PR is included in version 0.53.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 chat landed on a workspace only when it was new and its agent had one. This adds Move to workspace to the composer of an existing chat: it sends the session to a workspace of the daemon, or brings it back to this computer, between turns. It is the desktop client for the daemon's
teleport_session, with no change toinfer.Closes #427
Closes #417 - superseded: daemon workspaces replaced its pure-
kubectldesign, #426 covered its Settings part and this covers moving a chat. Its artifacts storage and GitHub App sections are not implemented.Changes
Move to workspacebutton on an existing chat. Its menu lists this computer and the daemon's workspaces, marks where the chat runs and disables unreachable ones.move_sessionruns the teleport, drops the chat's thread so the next prompt opens through the daemon's relay, and keeps the overlay and monitor off for a chat that is remote.workspacesin~/.infer/projects.yaml, so it survives a restart. A chat of an agent with a workspace is now pinned to the workspace it started on.frontend/lib/computers.ts:chatWorkspaceandmoveHops, with unit tests.tests/move-chat.yamlmoves a chat to the mock workspace and back.AGENTS.mdadds the new button names to the DOM contract, and the README describes the feature.Testing
task e2e -- tests/move-chat.yaml tests/agent-computers.yaml tests/take-over.yamlpass. The rest of the macOS e2e suite was not run.task devagainst theexamples/computer-usecluster: a plain chat moved toubuntu-desktop(a new Orchestrator appeared and the next prompt went through the workspace's gateway), then moved back (the chat answered with the local checkout as its working directory).cargo fmt --check, clippy and backend tests pass.Known limits