Repository navigation
docs: map the subagent card fields and sidebar family capacity in the pstack adapter - #128
Conversation
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…atch-subagent-cards # Conflicts: # docs/fork/pstack-adapter.md
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Merge evidence for head
|
Part of #13 and #8.
Updates
docs/fork/pstack-adapter.mdfor #120, which adds fork fields to the subagent tool cards, and for #116 and #109, which show a nested family's subagent capacity in the Agents sidebar. The page now says what forkmainat2d635ea9a6does.fork-chat-todos,list_agentsreturns each child'stodos, and its card shows the child's progress, such as 1/3 todos done.fork-agent-definitions, thespawn_agentcard of a custom child shows Agent type: and the name.fork-nested-subagents, thelist_agentscard marks a waiting child waiting for capacity, and the card of a failedspawn_agentcall shows its error, such as the live-limit error. In the sidebar, an expanded root chat's waiting subagents show an hourglass and Waiting for a free subagent slot, and the root shows a live 2/2 chip while the family is at its live limit.GET /api/v2/chats/fork/{chat}/familyreturnslive_subagents,max_live_subagents, andwaiting_for_capacityfor a root chat and fails with 400 for a child.fork-chat-todos, thewait_agentcard lists theinclude_tool_callsresults under N recent tool calls, or shows thetool_calls_errortext.forkToolRenderers.tsxandForkTodoTool.tsxranges, feat(site/src): show nested subagent family capacity in the agents sidebar #116 moved theChatTreeNode.tsxbadge line, and feat(coderd/x/chatd): deliver due chat wake-ups to idle chats #91 moved theworker.go,chat_mutations.go, andchatd.goranges, so those entries cite the new lines. The header names2d635ea9a6.Validation
5decda1a92andf924e36f98, a block-match check on every cited file that changed found the moved ranges above, all updated, one changed range (forkToolRenderers.tsx'sgate, re-read and now:21-33), and every other cited range unchanged. The new cites were read atf924e36f98.mainafter feat(coderd/x/chatd): accept model_config_id and reasoning_effort for computer_use spawns #95 landed. feat(coderd/x/chatd): accept model_config_id and reasoning_effort for computer_use spawns #95 re-cited thefork_agent_definitions.golines in the same entry that this PR extends, so the merge keeps this PR'sChatTreeNode.tsx:346and Agent type: cites with feat(coderd/x/chatd): accept model_config_id and reasoning_effort for computer_use spawns #95's:98-145. The block-match check fromf924e36f98to2d635ea9a6found thesubagent.goandfork_tools.goranges unchanged, exceptfork_tools.go:43, which still makes thewithStoredSubagentTypescall it cites.markdownlint-cli20.16.0 on the page: 0 errors. No em dashes, en dashes, spaced double hyphens, or semicolons in the added lines.4c0cf8c83bwith all three experiments, as a member, in headless Chromium. I set the test organization's limits tomax_concurrent_per_family: 1andmax_live_per_family: 2for the gate, and restored{}afterwards, which matches the earlier JSON:sleep 900, and worker B, which waited for the family's single slot. A third spawn failed withcannot create a child agent: this chat family has 2 live subagents and the maximum is 2.list_agentsreturned B withwaiting_for_capacity: trueand A with itstodos. Its card rows readw7 worker A (w7-cards-worker, running) · 1/3 todos doneandw7 worker B (general, running) · waiting for capacity.Agent type: w7-cards-workerfor A and the live-limit error for the failed spawn.wait_agentwithinclude_tool_calls: 5timed out and returned A'stodo_writeandexecutecalls, and its card shows 2 recent tool calls, which expands to both tool names and their arguments.{"live_subagents":2,"max_live_subagents":2,"waiting_for_capacity":["<B>"]}. With the root expanded, the sidebar shows thelive 2/2chip with its limit title on the root, and an hourglass and Waiting for a free subagent slot on B.