Skip to content

docs: map the subagent card fields and sidebar family capacity in the pstack adapter - #128

Merged
ibetitsmike merged 2 commits into
mainfrom
mike/pstack-adapter-batch-subagent-cards
Nov 10, 2026
Merged

ibetitsmike merged 2 commits into
mainfrom
mike/pstack-adapter-batch-subagent-cards

Conversation

@ibetitsmike

@ibetitsmike ibetitsmike commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

Part of #13 and #8.

Updates docs/fork/pstack-adapter.md for #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 fork main at 2d635ea9a6 does.

  • Todo list. With fork-chat-todos, list_agents returns each child's todos, and its card shows the child's progress, such as 1/3 todos done.
  • Custom agent types. With fork-agent-definitions, the spawn_agent card of a custom child shows Agent type: and the name.
  • Subagent limits. With fork-nested-subagents, the list_agents card marks a waiting child waiting for capacity, and the card of a failed spawn_agent call 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}/family returns live_subagents, max_live_subagents, and waiting_for_capacity for a root chat and fails with 400 for a child.
  • Chat transcripts. With fork-chat-todos, the wait_agent card lists the include_tool_calls results under N recent tool calls, or shows the tool_calls_error text.
  • Evidence. New entries cite the card fields, the family route and query, and the sidebar hook and chip. feat(site/src/pages/AgentsPage): show fork fields on the subagent tool cards #120 moved the forkToolRenderers.tsx and ForkTodoTool.tsx ranges, feat(site/src): show nested subagent family capacity in the agents sidebar #116 moved the ChatTreeNode.tsx badge line, and feat(coderd/x/chatd): deliver due chat wake-ups to idle chats #91 moved the worker.go, chat_mutations.go, and chatd.go ranges, so those entries cite the new lines. The header names 2d635ea9a6.

Validation

  • Between 5decda1a92 and f924e36f98, a block-match check on every cited file that changed found the moved ranges above, all updated, one changed range (forkToolRenderers.tsx's gate, re-read and now :21-33), and every other cited range unchanged. The new cites were read at f924e36f98.
  • Merged main after 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 the fork_agent_definitions.go lines in the same entry that this PR extends, so the merge keeps this PR's ChatTreeNode.tsx:346 and 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 from f924e36f98 to 2d635ea9a6 found the subagent.go and fork_tools.go ranges unchanged, except fork_tools.go:43, which still makes the withStoredSubagentTypes call it cites.
  • markdownlint-cli2 0.16.0 on the page: 0 errors. No em dashes, en dashes, spaced double hyphens, or semicolons in the added lines.
  • UAT on the isolated 3100 server at 4c0cf8c83b with all three experiments, as a member, in headless Chromium. I set the test organization's limits to max_concurrent_per_family: 1 and max_live_per_family: 2 for the gate, and restored {} afterwards, which matches the earlier JSON:
    • A root chat spawned worker A with a temporary custom type, which wrote a three-item todo list and ran sleep 900, and worker B, which waited for the family's single slot. A third spawn failed with cannot create a child agent: this chat family has 2 live subagents and the maximum is 2.
    • list_agents returned B with waiting_for_capacity: true and A with its todos. Its card rows read w7 worker A (w7-cards-worker, running) · 1/3 todos done and w7 worker B (general, running) · waiting for capacity.
    • The spawn cards show Agent type: w7-cards-worker for A and the live-limit error for the failed spawn.
    • wait_agent with include_tool_calls: 5 timed out and returned A's todo_write and execute calls, and its card shows 2 recent tool calls, which expands to both tool names and their arguments.
    • The family route returned {"live_subagents":2,"max_live_subagents":2,"waiting_for_capacity":["<B>"]}. With the root expanded, the sidebar shows the live 2/2 chip with its limit title on the root, and an hourglass and Waiting for a free subagent slot on B.
    • The gate family is archived, and the temporary definition is deleted.
  • Docs only. No code change.

Xum opened this PR on behalf of @ibetitsmike.

@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum acted for Mike on this comment.

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T09:22:31.969024Z 3701ad8 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: c0607089c1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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

Copy link
Copy Markdown
Owner Author

Xum acted for Mike on this comment.

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 3701ad8d04

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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

@ibetitsmike
ibetitsmike merged commit a9438bd into main Nov 10, 2026
10 checks passed
@ibetitsmike
ibetitsmike deleted the mike/pstack-adapter-batch-subagent-cards branch November 10, 2026 09:40
@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum (AI agent) merged this on behalf of @ibetitsmike.

Merge evidence for head 3701ad8d048fa81d525342d7141c5248c9de67f8 (docs only: docs/fork/pstack-adapter.md):

  • fork-ci pull_request run 42789786505 passed on this head, which merges main 2d635ea9a6 (feat(coderd/x/chatd): accept model_config_id and reasoning_effort for computer_use spawns #95) and keeps both sides' cites.
  • Codex on this exact head: no major issues (comment 6763695672). 0 unresolved review threads.
  • The rows it adds were gated by UAT on the isolated 3100 server at 4c0cf8c83b as a member in headless Chromium (PR body), and a block-match check from 5decda1a92 to 2d635ea9a6 re-read every changed cite.
  • Rides after a code merge; CLEAN against main 8f7fdb0 at merge time.

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