Skip to content

Release v1.6.1: visible sub-agents, answerable questions, popovers inside the window - #95

Merged
dev-dami merged 8 commits into
mainfrom
claude/pensive-meitner-ptvapo
Oct 27, 2026
Merged

dev-dami merged 8 commits into
mainfrom
claude/pensive-meitner-ptvapo

Conversation

@dev-dami

Copy link
Copy Markdown
Owner

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:

    • as a sub-lane under its member, e.g. "↳ review-pr-296 failed";
    • as a collapsible block in the conversation;
    • as a node in the Work Graph, in both Now and History.

    They are saved with the room. Support differs by agent:

    • Claude Code: fully supported, because every sub-agent line carries parent_tool_use_id.
    • OpenCode and Pi: only the start and end show, because ACP streams just the parent session.
    • Codex: its collab agent calls are mapped, but only from the schema; this has not been run against a live Codex.
  • Agents use agent.spawn when 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 AskUserQuestion used to auto-fail with "The user did not answer the questions". It now raises a question card:

    • the card shows the options, a free-text "Other", and Submit or Skip, with number keys to pick;
    • the card appears in the room, the Inbox, the bell and the phone app;
    • the answers go back as the tool result, in every mode including yolo.

    Codex requestUserInput and 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 ./... and go test ./... pass.
    • The internal/deck/peer relay tests failed once under full parallel load and pass when re-run alone; this PR doesn't change that package.
    • Local go vet with Go 1.27.0 again flags internal/app/app.go, which is unchanged. CI's go vet passed on the same file for the previous PR.
  • gofmt -l . prints only internal/cmd/session.go, which is unchanged from main.
  • No credentials, tokens, account identifiers, usernames, hostnames or other personal data in fixtures, recordings, golden files or this description.
  • Docs are updated where behavior changed (docs/remote-contract.md, README).
  • The change keeps the rules in CONTRIBUTING.md; internal/guard was not touched.

Desktop: npm run lint is clean, npm test passes 705 tests, and Playwright passes 101. The phone/web client passes typecheck and 623 tests, and verify-dist matches a fresh build.

Notes for the reviewer

  • How Claude's answer reply was checked: the shape is {"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.
  • Codex was only checked against fixtures: its question shape and its collab sub-agent events have not been run against a live Codex.
  • Answering from the hosted phone app: it can decline a question but not answer it yet, because its answer request has no answers field.

Generated by Claude Code

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
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
@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too 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.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a73f2854-4a93-45fe-b3fe-201718817008
Commits

Reviewing files that changed from the base of the PR and between c90a1c9 and 749c49e.

Files ignored due to path filters: 7
  • pkg/remote/web/dist/index.html is excluded by !**/dist/**
  • pkg/remote/web/dist/main-tcn4bqxk.js is excluded by !**/dist/**
  • pkg/remote/web/dist/main-xkx65hec.js is excluded by !**/dist/**
  • pkg/remote/web/dist/style-rn7ppxmr.css is excluded by !**/dist/**
  • pkg/remote/web/dist/sw.js is excluded by !**/dist/**
  • pkg/rpc/deckv1/deck.pb.go is excluded by !**/*.pb.go
  • pkg/rpc/deckv1/deck_grpc.pb.go is excluded by !**/*.pb.go
Files selected for processing: 112
  • desktop-shell/src/renderer/actions.test.ts
  • desktop-shell/src/renderer/actions.ts
  • desktop-shell/src/renderer/attention.test.ts
  • desktop-shell/src/renderer/attention.ts
  • desktop-shell/src/renderer/client.ts
  • desktop-shell/src/renderer/crew.ts
  • desktop-shell/src/renderer/graph.test.ts
  • desktop-shell/src/renderer/graph.ts
  • desktop-shell/src/renderer/lanes.test.ts
  • desktop-shell/src/renderer/lanes.ts
  • desktop-shell/src/renderer/questions.test.ts
  • desktop-shell/src/renderer/questions.ts
  • desktop-shell/src/renderer/rpcClient.ts
  • desktop-shell/src/renderer/rpcMap.ts
  • desktop-shell/src/renderer/ui/App.tsx
  • desktop-shell/src/renderer/ui/Inbox.tsx
  • desktop-shell/src/renderer/ui/Lanes.tsx
  • desktop-shell/src/renderer/ui/QuestionCard.tsx
  • desktop-shell/src/renderer/ui/QuestionRow.tsx
  • desktop-shell/src/renderer/ui/Room.tsx
  • desktop-shell/src/renderer/ui/RoomAsk.tsx
  • desktop-shell/src/renderer/ui/Shell.tsx
  • desktop-shell/src/renderer/ui/Timeline.tsx
  • desktop-shell/src/renderer/ui/graph/Controls.tsx
  • desktop-shell/src/renderer/ui/graph/Detail.tsx
  • desktop-shell/src/renderer/ui/graph/History.tsx
  • desktop-shell/src/renderer/ui/graph/Nodes.tsx
  • desktop-shell/src/renderer/ui/kit/menu.tsx
  • desktop-shell/src/renderer/workHistory.test.ts
  • desktop-shell/src/renderer/workHistory.ts
  • desktop-shell/test/e2e/layout.spec.ts
  • desktop-shell/test/e2e/questions.spec.ts
  • desktop-shell/test/e2e/subagents.spec.ts
  • desktop-shell/test/fake-grpc.ts
  • desktop-shell/test/fake-server.ts
  • docs/remote-contract.md
  • internal/deck/agent/acp/acp_test.go
  • internal/deck/agent/acp/acptest/fake.go
  • internal/deck/agent/acp/approval.go
  • internal/deck/agent/acp/translate.go
  • internal/deck/agent/agent.go
  • internal/deck/agent/claude/ask_test.go
  • internal/deck/agent/claude/claude_test.go
  • internal/deck/agent/claude/subagent_test.go
  • internal/deck/agent/claude/testdata/ask_question.jsonl
  • internal/deck/agent/claude/testdata/subagents.jsonl
  • internal/deck/agent/claude/translate.go
  • internal/deck/agent/codex/approval.go
  • internal/deck/agent/codex/collab.go
  • internal/deck/agent/codex/collab_test.go
  • internal/deck/agent/codex/protocol.go
  • internal/deck/agent/codex/questions_test.go
  • internal/deck/agent/codex/translate.go
  • internal/deck/agent/pi/pi.go
  • internal/deck/agent/pi/pi_test.go
  • internal/deck/approve/ask.go
  • internal/deck/approve/ask_test.go
  • internal/deck/approve/broker.go
  • internal/deck/approve/testdata/ask_call.json
  • internal/deck/session/briefing.go
  • internal/deck/session/coord_test.go
  • internal/deck/session/manager.go
  • internal/deck/session/modes.go
  • internal/deck/session/questions_test.go
  • internal/deck/session/roster.go
  • internal/deck/session/share.go
  • internal/deck/session/subagents.go
  • internal/deck/session/subagents_test.go
  • internal/deck/session/team_test.go
  • internal/deck/store/scan_test.go
  • internal/deck/store/store.go
  • internal/workspace/activity.go
  • internal/workspace/deck_workspace.go
  • internal/workspace/questions.go
  • internal/workspace/questions_test.go
  • internal/workspace/remote_caps.go
  • internal/workspace/subagents.go
  • internal/workspace/subagents_test.go
  • pkg/remote/adapter/adapter.go
  • pkg/remote/adapter/adapter_test.go
  • pkg/remote/adapter/events.go
  • pkg/remote/adapter/questions.go
  • pkg/remote/adapter/questions_test.go
  • pkg/remote/backend.go
  • pkg/remote/daemon/conn.go
  • pkg/remote/daemon/queue.go
  • pkg/remote/ipc/ipc.go
  • pkg/remote/ipc/proxy.go
  • pkg/remote/ipc/serve.go
  • pkg/remote/remotetest/fake.go
  • pkg/remote/server/rpc.go
  • pkg/remote/web/dist-hosted/index.html
  • pkg/remote/web/dist-hosted/main-0r7z7fnc.js
  • pkg/remote/web/dist-hosted/main-9we3ghyb.js
  • pkg/remote/web/dist-hosted/style-rn7ppxmr.css
  • pkg/remote/web/dist-hosted/sw.js
  • pkg/remote/web/src/controller.ts
  • pkg/remote/web/src/protocol.ts
  • pkg/remote/web/src/questions.test.ts
  • pkg/remote/web/src/questions.ts
  • pkg/remote/web/src/style.css
  • pkg/remote/web/src/ui/ApprovalSheet.tsx
  • pkg/remote/web/src/ui/QuestionForm.tsx
  • pkg/remote/wire/testdata/entity_approval_question.json
  • pkg/remote/wire/testdata/req_approvals.answer_question.json
  • pkg/remote/wire/wire.go
  • pkg/rpc/convert.go
  • pkg/rpc/questions_test.go
  • pkg/rpc/server.go
  • pkg/rpc/team.go
  • pkg/rpc/team_test.go
  • proto/deck/v1/deck.proto

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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
@dev-dami
dev-dami merged commit 8a55d23 into main Oct 27, 2026
10 checks passed
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.

2 participants