Skip to content

feat(web): continue from a subagent's work in a new chat tab - #109

Merged
adampeterhiggins merged 1 commit into
mainfrom
ah/continue-agent-work-in-chat
Oct 1, 2026
Merged

adampeterhiggins merged 1 commit into
mainfrom
ah/continue-agent-work-in-chat

Conversation

@adampeterhiggins

Copy link
Copy Markdown
Owner

The Agents panel makes delegated work easy to inspect, but there was no way to carry on an agent's line of work in its own conversation. Say an agent investigates three possible causes: you could read its findings, but not open a chat about the most promising one.

Continue in chat (a new icon in the agent detail header, and an item in the list's right-click menu) opens a new chat tab of the same thread, on the thread's model. The tab's draft starts with a chat-summary chip that holds:

  • the agent's status and name
  • its task (the launch prompt)
  • its result or error, or its latest progress if it is still running
  • its tool calls, the latest 40 if there are more, with failed or running calls marked

subagentContinuationContext in packages/client-runtime builds that text. It is pure and has tests. The tab is created by the existing forkThreadTab path, which now accepts caller-supplied context in place of the source chat's summary. The context reuses the thread-tab record kind, so the chip, its preview, and how it is sent to the provider work as they already do. No contract or server changes.

This first version starts a fresh conversation with the captured context. It does not resume the agent's provider session.

Surfaces: web and desktop. Mobile has no Agents panel, so it is not affected. All providers that populate the Agents panel are covered, since this only uses the client-side agent fold. Docs: docs/user/thread-sidebar.md and docs/fork-differences.md updated.

Verification: vp test run packages/client-runtime/src/state/agentPanelView.test.ts (25 passed), web and client-runtime typecheck, and lint on the touched files. I have not tested it in a real client yet, so there are no screenshots.

🤖 Generated with Claude Code (Claude Opus 5.5)

Continue in chat, in the agent detail view and the Agents list's
right-click menu, opens a new chat tab of the thread whose draft carries
the agent's task, result or error, and latest tool calls as a
chat-summary chip. It starts a fresh conversation with that context
rather than resuming the agent's provider session.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant