Skip to content

feat(chat): move an existing chat to a workspace and back - #428

Merged
edenreich merged 1 commit into
mainfrom
feat/move-chat-workspace
Nov 5, 2026
Merged

edenreich merged 1 commit into
mainfrom
feat/move-chat-workspace

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

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 to infer.

Closes #427
Closes #417 - superseded: daemon workspaces replaced its pure-kubectl design, #426 covered its Settings part and this covers moving a chat. Its artifacts storage and GitHub App sections are not implemented.

Changes

  • Composer: a Move to workspace button on an existing chat. Its menu lists this computer and the daemon's workspaces, marks where the chat runs and disables unreachable ones.
  • A move stops a running turn first, hands back a screen the person holds, then teleports and shows each stage. A failed move shows the daemon's message and leaves the chat where it was.
  • A chat on one workspace comes home before it goes to another, since the daemon refuses a direct hop.
  • Backend: move_session runs 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.
  • Where a chat runs is saved as workspaces in ~/.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.
  • Computers view: every open chat on a workspace gets a tile with Take over, with or without an agent.
  • frontend/lib/computers.ts: chatWorkspace and moveHops, with unit tests.
  • e2e: tests/move-chat.yaml moves a chat to the mock workspace and back.
  • AGENTS.md adds 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.yaml pass. The rest of the macOS e2e suite was not run.
  • Real run in task dev against the examples/computer-use cluster: a plain chat moved to ubuntu-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).
  • Not exercised for real: a failed move, a workspace to workspace move and moving a chat while it runs.
  • Frontend build and unit tests, cargo fmt --check, clippy and backend tests pass.

Known limits

  • A moved chat keeps its model. If the workspace's gateway has no key for that provider, the next prompt fails with "model not available" until another model is picked. The app does not warn about it.
  • Moving back restores the project's files into the local folder.
  • Where a chat runs is the app's own record. If the cluster deletes a suspended session after its retention, the record is stale until the chat is moved again.

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
@edenreich
edenreich marked this pull request as ready for review November 5, 2026 17:21
@edenreich
edenreich merged commit ac55590 into main Nov 5, 2026
1 check passed
@edenreich
edenreich deleted the feat/move-chat-workspace branch November 5, 2026 17:22
@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.53.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@inference-gateway-maintainer inference-gateway-maintainer Bot added the released Shipped in a release label Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Move an existing chat to a workspace and back [FEATURE] Continue a running session on a remote Kubernetes cluster

1 participant