Repository navigation
Release v1.6.1: visible sub-agents, answerable questions, popovers inside the window - #95
Merged
Merged
Conversation
With the sidebar on the right, the notification panel opened from the bell ran off the window's right edge. Popover now measures itself when it opens (and on resize) and slides back inside the window, so the bell and every other popover near an edge stay whole. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012MpTphqzR7pCtKm8tSaB8x
An agent asked to "spin up sub agents" may use its CLI's own subagent tool (Claude Code's Task) instead of agent.spawn; Deck then showed nothing of them. Now each one is a child of its member: - agent: KindSubagent (start and end, with its task, type and status) and Event.Sub on the events of its work. - claude: Task/Agent calls start a subagent, lines tagged with its parent_tool_use_id are its text, thinking, calls and results, the call's result ends it (done or failed), and a turn that ends first stops it. Its usage no longer touches the agent's context meter. - acp (OpenCode, Pi): a task call's start and end; ACP streams only the parent session, so not its work. codex: spawnAgent collab calls start one, agentsStates end it, and items of its thread are its work. - session: the member keeps its subagents (store.Member.Subs) with a name from their task (review-pr-296, review-pr-296-2), their state and actions; they persist, stop with the CLI and on resume, show on thread.roster and never enter the thread's log or the member's reply. - workspace: their work is stored as messages of "<member>/<name>", their calls in flight as their own; SubAgents lists them, and Agents puts them in the tree under their member (AgentNode.native and friends). - briefing: "when the user asks for agents, use it, not your own Task/subagent tool"; the briefing is shorter than before at every level. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012MpTphqzR7pCtKm8tSaB8x
The agents tree's CLI-native subagents (AgentNode.native) show:
- Lanes: a chip right under its member's ("↳ review-pr-296 failed"), its
running state pulsing; a click shows its work alone, open, and its
popover gives its task and actions, links to its member, and stops the
member (it answers to its member alone). A running one never folds; ended
ones fold first.
- Conversation: each subagent's work is one block under its member's reply
("↳ review-pr-296 · Review PR #296 · 3 actions · failed"), its parallel
siblings' messages between or not; it names its call at work and opens to
its words, calls and error. The member's run goes on past the blocks.
- Work Graph: Now has each as a node under its member with its task, state
and call at work, and the legend counts them apart ("3 agents · 4
sub-agents"); History gives each a lane under its member's, of its kind.
- A failed subagent is its member's to handle: the room does not need you.
The fake Deck starts four reviewers when told to "spin up sub agents", and
an e2e follows them through the lanes, the graph and the conversation.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012MpTphqzR7pCtKm8tSaB8x
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012MpTphqzR7pCtKm8tSaB8x
Claude Code headless hands AskUserQuestion to the permission prompt tool in every mode, and Deck answered it like a permission: yolo auto-allowed it with no answers, so the tool reported "The user did not answer the questions" and the person never saw it. A question is now its own approval kind (agent.ApproveQuestion) with questions, options, multi-select and Other. No mode answers it. The broker replies to Claude with an allow whose updatedInput is the tool input plus "answers" keyed by question text, or a deny saying the user declined. Codex's request_user_input and pi-acp's select prompts become questions too. The workspace holds pending questions until answered, declined or withdrawn, writes a conversation line that becomes the record, and puts them in the terminal UI's question form. They travel to the desktop (gRPC) and the phone (WebSocket) as approvals of kind "question", answered with decision "answer" and answers, or "deny"; the phone's web client gets a simple question sheet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012MpTphqzR7pCtKm8tSaB8x
A question card rides on the composer like an approval: each question
under its header, options to pick (radio or checkbox), an Other box,
Submit and Skip; the number keys pick and Enter submits. Answered, it
leaves one line ("You answered: Post as comments"), and the
conversation shows the question and what came of it. The inbox shows
the card; the room status and the bell say "Answer claude".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012MpTphqzR7pCtKm8tSaB8x
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012MpTphqzR7pCtKm8tSaB8x
|
Important Review skippedToo many files! This PR contains 112 files, which is 12 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.
|
TestGateWakesAnIdleLeaseHolder checked claude's turn count right after the gate returned. The gate returns on claude's reply, which can land a moment before the fake counts the turn as done, so the check failed about 1 run in 30 (7 of 200 locally, once in CI). It now waits for the second turn. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012MpTphqzR7pCtKm8tSaB8x
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.
What this changes
Fixes from using v1.6.0. Once this merges, the release is cut by running Actions → Release with
v1.6.1.Sub-agents an agent's own CLI starts are now visible. When Claude Code uses its Task/Agent tool, each sub-agent shows up three ways:
They are saved with the room. Support differs by agent:
parent_tool_use_id.Agents use
agent.spawnwhen the user asks for agents. The briefing now tells them to use it rather than their own Task tool in that case, so the agents they start get proper lanes that can be steered. Every level, measured with a team attached, stays under the 2200-character budget (full: 2162).Agents' questions reach the user. Claude's
AskUserQuestionused to auto-fail with "The user did not answer the questions". It now raises a question card:Codex
requestUserInputand Pi's select prompts are routed to the same card. Pi's select prompts used to silently pick the first option.Popovers stay inside the window. With the sidebar on the right, the notification panel ran off the right edge. Every popover now slides back inside.
Checklist
go build ./...,go vet ./...andgo test ./...pass.internal/deck/peerrelay tests failed once under full parallel load and pass when re-run alone; this PR doesn't change that package.go vetwith Go 1.27.0 again flagsinternal/app/app.go, which is unchanged. CI'sgo vetpassed on the same file for the previous PR.gofmt -l .prints onlyinternal/cmd/session.go, which is unchanged from main.docs/remote-contract.md, README).internal/guardwas not touched.Desktop:
npm run lintis clean,npm testpasses 705 tests, and Playwright passes 101. The phone/web client passes typecheck and 623 tests, andverify-distmatches a fresh build.Notes for the reviewer
{"behavior":"allow","updatedInput":{...input, "answers":{"<question>":"<label>"}}}. It was checked against the AskUserQuestion code in the installed Claude Code 2.1.311 and run through a fake CLI, not a signed-in Claude.Generated by Claude Code