Repository navigation
feat(site/src/pages/AgentsPage): render fork todo tool calls as checklist cards - #87
Conversation
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 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a827716b9f
ℹ️ 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".
@codex review |
|
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". |
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 (first of three PRs).
With
fork-chat-todoson,todo_writeandtodo_readtool calls rendered as the generic JSON row. They now render as a checklist card that reuses the todo pill's checklist:todo_write: "Updated todos (1/3 done)", expandable to the stored list. While the call runs, "Updating todos…" lists the requested items once its args finish streaming (the stream parser omits a partial array, so the list stays hidden until then). An empty list reads "Cleared todos".todo_read: "Read todos (n/m done)" or "No todos".With the experiment off, or when
Toolrenders without aDashboardProvider(upstream's tool stories), rows look exactly like upstream, including the wrench icon.Fork hooks
Each upstream file gets one line, so upstream syncs stay clean:
Tool.tsxspreadscreateForkToolRenderers(GenericToolRenderer).forkToolRenderers.tsbecomes.tsx: it gates each fork renderer on its experiment throughDashboardContextand hands the renderer afallbackfor output it cannot parse. Fork renderers now use the real tool names instead of a reservedfork_prefix; the test checks that no fork name collides with an upstream or subagent renderer name.ToolIcon.tsxspreadsforkToolIcons, keyed by a fork icon name (fork_todo), not the tool name, so a flag-off row keeps the upstream icon.Tool.stories.tsxspreadsforkToolShowcaseItems, so the every-renderer policy badge story still covers every name.ChatTodoPill.tsxnow exportsChatTodoChecklistandformatChatTodoProgress; the pill uses them unchanged.Tests
ForkTodoTool.stories.tsx: Updated, Updating, Cleared, Read, ReadRunning, ReadEmpty, Failed, ReadFailed, ExperimentOff, UnparsableResult. Visual states only, for Pixel.forkToolRenderers.test.ts: fork renderer names do not collide with upstream renderers.toolIconsCoverage.test.ts: fork renderer names are exempt from the by-tool-name icon lookup, because their cards pass a fork icon name.Local:
pnpm lint,tsc, unit Vitest forChatElements/tools(301 tests), Storybook Vitest forForkTodoTool.storiesandTool.stories(166 tests).UAT
Dev frontend at this head against a local fork server with
fork-chat-todos, a member chat on a real model making realtodo_writeandtodo_readcalls (no seeded rows). With the flag on, the timeline shows "Updated todos (1/3 done)" expanding to the checklist (done, in progress, pending, cancelled struck through), "No todos" for the read (the model issued it in parallel with the write, so it read the list before the write landed), and "Cleared todos" for a later write of an empty list. A write the server rejects (duplicate todo id) shows "Failed to update todos" with the server error. With the experiment list served withoutfork-chat-todos, the same chat shows upstream's generictodo_writeandtodo_readrows with the wrench icon.