Repository navigation
Closed
Description
Xum created this issue on behalf of @ibetitsmike.
Part of #4. UI wave for W4 (#10), W1 (#7) and W2 (#8) tools.
W9 · Tool cards for fork tools · mike/fork-tool-cards
Task. Fork tools render as purpose-built cards instead of the generic JSON block, and upstream subagent cards show the fields the fork adds.
Background.
forkToolRenderers(site/src/pages/AgentsPage/components/ChatElements/tools/forkToolRenderers.ts) is empty on main, and its test only allows names with thefork_prefix. The fork tools are namedtodo_write,todo_read,read_chat_transcriptandsearch_chats(coderd/x/chatd/fork_chat_todos.go,fork_chat_transcript.go,fork_search_chats.go), so the prefix rule must change to a no-collision rule (a fork name must not match an upstream renderer name), which the test's second case already covers.- Upstream renders
list_agents,spawn_agentandwait_agent. The fork adds todos andwaiting_for_capacitytolist_agents(feat: add the todo_write and todo_read chat tools #34, feat(coderd): report subagents waiting for a fork concurrency slot #57), recent tool calls towait_agent(feat(coderd/x/chatd): add include_tool_calls to wait_agent #53), custom types and live-limit errors tospawn_agent(feat: resolve custom agent types in spawn_agent #51, feat: enforce the live subagent limit per family behind fork-nested-subagents #49).
Scope.
- Cards for
todo_writeandtodo_read(the checklist, consistent with the composer todo pill from feat(site/src): show the chat todo list in the composer #43),read_chat_transcript(which chat, which page, a collapsible excerpt with role labels),search_chats(results that link to the chats). - Fork fields on the upstream subagent cards through one hook line per renderer file: todos and waiting state in
list_agents, recent tool calls inwait_agent, the custom type name and readable limit errors inspawn_agent.
Acceptance.
- Each card renders real tool output from a dev instance (screenshots), errors render as errors, and long output stays collapsed.
- With the experiments off, the tool rows match upstream.
Constraints. Experiments of the owning features (fork-chat-todos, fork-nested-subagents, fork-agent-definitions).
Metadata
Metadata
Assignees
Labels
No labels
Activity
ibetitsmike commentedon Nov 10, 2026
W9 is done. All four PRs are merged and deployed:
search_chatsandread_chat_transcript.The paired check after the #120 deploy passed. On the UAT server, as a member, the cards showed the custom agent type, "2 recent tool calls" (expanding to 2 items) and "1/3 todos done", with 0 console errors. On the daily server, chats without custom data render the upstream
spawn_agent,wait_agentandlist_agentscards with the fork fields absent, and 0 console errors.