Repository navigation
feat(site/src/pages/AgentsPage): show fork fields on the subagent tool cards - #120
Conversation
…l cards list_agents rows show a child waiting for a concurrency slot and its todo progress. spawn_agent shows a custom agent type and the error text of a refused spawn, and wait_agent lists the child's recent tool calls. Each field shows only while the experiment that adds it is on.
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 |
|
Codex Review: Didn't find any major issues. Chef's kiss. 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". |
Closing and reopening only to make GitHub recompute the merge ref against current main ( |
The merge ref now points at current main ( |
Merge evidence for head
|
Part of #74 (third of three PRs, after #87 and #97).
The fork experiments add fields to the
spawn_agent,wait_agentandlist_agentsresults that the upstream subagent cards drop. The cards now show them, each behind the experiment that produces it:list_agentsrows: " · waiting for capacity" when a child waits for a subagent concurrency slot (fork-nested-subagents), and " · 1/3 todos done" when a child has todos (fork-chat-todos).spawn_agent: "Agent type: w9-reviewer" when the call spawned a custom agent definition, that is a type the card's built-in variants do not cover (fork-agent-definitions). A spawn the nested-subagent limits rejected shows the server's error text, for example "cannot create a child agent: this chat family has 2 live subagents and the maximum is 2" (fork-nested-subagents).wait_agent: "2 recent tool calls", expandable to one line per call with its tool name, a "failed" marker and its arguments, plus thetool_calls_errortext when the server could not read them (fork-chat-todos). These render outside the card's collapsed content, so a wait that timed out without a report still shows what the child was doing.With the experiments off, the cards look exactly like upstream.
Hook footprint in upstream files:
ListAgentsTool.tsxgets one<ForkListAgentFields agent={rec} />slot in the row (plus its import),SubagentTool.tsxgets aforkCallprop and one<ForkSubagentFields>slot between the recording preview and the card content, andTool.tsx'sSubagentRendererpassesforkCall={{ args, result }}. The fields live in the newForkListAgentFields.tsxandForkSubagentFields.tsx.forkToolUtils.tsgainsuseForkExperiment, which the existing renderer gate now uses too, andparseChatTodo, moved fromForkTodoTool.tsxso the list rows can reuse it.Tests
ForkSubagentFields.stories.tsx: ListAgents, ListAgentsExperimentsOff, SpawnCustomType, SpawnLimitError, WaitRecentToolCalls, WaitToolCallsError. Visual states only, for Pixel.Local:
pnpm lint,tsc, unit Vitest forChatElements/tools(301 tests), Storybook Vitest forForkSubagentFields.stories,ForkTodoTool.storiesandTool.stories(172 tests).UAT
Dev frontend at this head against a local fork server with all three experiments, member chats on a real model making real calls (no seeded rows). One chat spawned a
w9-revieweragent definition: the spawn card shows "Agent type: w9-reviewer", the wait card shows "2 recent tool calls" expanding to both calls, and thelist_agentsrow shows "1/3 todos done". In a second chat, with the organization's subagent limits briefly lowered, a third spawn shows the server's live-limit error and thelist_agentsrow of the child that waits for a concurrency slot shows "waiting for capacity". Checked in dark and light themes. With the experiment list served without the fork experiments, both chats show upstream's cards.