Repository navigation
Render task checklists with update diffs and a composer progress panel - #19230
Conversation
📝 WalkthroughWalkthroughAdds shared normalization for Claude Merge Risk: 🟡 Moderate · up to Task-list updates show only the latest checklist rather than the required per-tool change summary before the full list. This visible feature regression should be fixed before merge. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 17.39% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 23 functions across 18 files. (1 skipped: 1 unsupported.) Full details: Description checkResolution Rewrite the description using the repository template. Add ELI5, What Changed, Why, Linked Issue with a valid issue number, Visual Proof with the required attachments or an explicit N/A reason, Testing details and platform coverage, AI Disclosure, Review, Agent skill upstream boundary, Notes, and the required Checklist status.
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
⚔️ Resolve merge conflicts 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Team
Run ID: bf0cd4ff-e8d8-4377-ac02-de302c0323fb
📒 Files selected for processing (15)
PLAN.mdsrc/renderer/src/components/native-chat/NativeChatMessageList.test.tsxsrc/renderer/src/components/native-chat/NativeChatMessageList.tsxsrc/renderer/src/components/native-chat/NativeChatMessageRow.tsxsrc/renderer/src/components/native-chat/NativeChatTaskList.test.tsxsrc/renderer/src/components/native-chat/NativeChatTaskList.tsxsrc/renderer/src/components/native-chat/NativeChatToolRun.test.tsxsrc/renderer/src/components/native-chat/NativeChatToolRun.tsxsrc/renderer/src/components/native-chat/native-chat-task-list-history.test.tssrc/renderer/src/components/native-chat/native-chat-task-list-history.tssrc/renderer/src/i18n/locales/en.jsonsrc/shared/native-chat-task-list.test.tssrc/shared/native-chat-task-list.tssrc/shared/native-chat-tool-icon.test.tssrc/shared/native-chat-tool-icon.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 2 remain after this review.
| for (const task of current.tasks) { | ||
| const occurrence = occurrences.get(task.content) ?? 0 | ||
| occurrences.set(task.content, occurrence + 1) | ||
| const before = byContent.get(task.content)?.[occurrence] |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Match duplicate tasks by visible state before reporting changes.
Line 92 pairs duplicate content strictly by position. A reorder from [A pending, A completed] to [A completed, A pending] reports a false completion and reset, although the task list did not change.
Line 108 also reports updated when only activeForm changes on a pending or completed task. Those edits do not change nativeChatTaskLabel.
First match semantically identical same-content entries. Then compare unmatched entries by occurrence. Compare activeForm only when both tasks are in_progress. Add regressions for both cases. The design requires reorder-only changes to be omitted.
Also applies to: 108-108
There was a problem hiding this comment.
ℹ️ No critical issues — a couple of minor suggestions inline.
Reviewed changes
A renderer-only change that renders TodoWrite and update_plan tool calls as inline checklists, diffing each tool family against its previous valid call across message and turn boundaries.
- Pure shared model —
native-chat-task-list.tsnormalizes both tool families and computes a deterministic content+occurrence diff with three task states. - History threading —
native-chat-task-list-history.tsderives per-message predecessors in one transcript pass and rebuilds tool rows on the existing FIFOpairToolBlockspairing. - Rendering —
NativeChatTaskListdraws tri-state glyphs, progress, and a diff-then-disclosure layout;NativeChatToolRunswaps valid list calls in and folds successful results while leaving malformed/failed calls in the generic view. - Icon + i18n —
update_planmaps to thetodoListglyph; new English strings land undercomponents.native-chat.taskList.
The normalizer/diff logic is sound and the test suite is tight — exact toEqual arrays and toBeNull checks rather than loose assertions. The memoization-through-pagination design (predecessor prop flips a memoized row from full list to diff) is verified end-to-end.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
ℹ️ Delta reviewed — the planning artifact was removed; two prior minor suggestions remain open.
Reviewed changes
Delta since the prior pullfrog review: PLAN.md was removed from the repository root (resolving that thread), and main was merged in to resync. The remaining 14 files are byte-identical to the previously reviewed version, so no new issues were introduced.
Two minor suggestions from the prior review are still open and unaddressed:
NativeChatTaskList.tsx:54— the sr-only status prefix duplicates the change label in diff rows (Completed: Completed Read).native-chat-task-list.ts:108—activeFormis compared for non-in_progresstasks, producing anupdateddiff with no visible change.
Neither blocks merge; both are follow-up nits.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
ℹ️ No new issues in this delta. The live Codex
turn/plan/updatedpath projects cleanly through the same checklist/diff pipeline with solid frame-level coverage. The two minor threads from the prior review remain open and unchanged, so this is not a clean approval.
Reviewed changes
Delta since the prior pullfrog review: live Codex plan notifications now render as checklists.
- Notification projection —
projectNativeChatTaskListFramesmaps a Codexnotification:turn/plan/updatedsystem message to a settledupdate_plantool-call block client-side, running after tool folding so a notification never consumes another call's result. - CamelCase status normalization —
normalizeNativeChatTaskListnow accepts Codex'sinProgressstatus for theupdate_planfamily, so the notification and tool-call paths share one status model. - Wiring + tests —
NativeChatMessageListprojects frames before computing predecessors; new tests cover pagination-driven diff refresh, tool-family independence, malformed/truncated/other-provider/plan-document passthrough, and byte-identical plan-document translation.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
Status: ready for reviewPlan reviewReviewed before any code was written. APPROVE WITH AMENDMENTS, all applied. The one that mattered: predecessor lookup had to be scoped by tool name, or a subagent or MCP call interleaving a differently-shaped list could become a bogus diff baseline and produce a confidently wrong "Completed X". Also pinned: identity is content+occurrence, the memoized predecessor prop must change referentially when pagination prepends history, and The find that mattered mostThe reviewer noticed the checklist rendered only when Code review loopSame-model subagent review returned clean. Verification
Manual UI validationReal Orca dev build, hidden renderer over CDP. 5 screenshots attached above. Checklist renders with distinct pending / in-progress / completed states; progress indicator present; a second update leads with only what changed; a first list with no predecessor shows the full list rather than a fabricated diff; both themes correct. Known gap, reported rather than papered over: the live Process deviations, stated plainly
Known-red, not caused by this PR
|
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Team
Run ID: b77115bc-f853-4539-b9a7-e3b9d1b5d39c
📒 Files selected for processing (13)
src/main/codex/codex-structured-item-translation.test.tssrc/renderer/src/components/native-chat/NativeChatMessageList.task-list-frames.test.tsxsrc/renderer/src/components/native-chat/NativeChatMessageList.tsxsrc/renderer/src/components/native-chat/NativeChatTaskList.test.tsxsrc/renderer/src/components/native-chat/NativeChatTaskList.tsxsrc/renderer/src/components/native-chat/native-chat-task-list-frames.tssrc/renderer/src/components/native-chat/native-chat-task-list-state.test.tssrc/renderer/src/components/native-chat/native-chat-task-list-state.tssrc/renderer/src/i18n/locales/en.jsonsrc/shared/native-chat-task-list.test.tssrc/shared/native-chat-task-list.tssrc/shared/native-chat-tool-icon.test.tssrc/shared/native-chat-tool-icon.ts
🚧 Files skipped from review as they are similar to previous changes (5)
- src/shared/native-chat-tool-icon.test.ts
- src/shared/native-chat-tool-icon.ts
- src/renderer/src/i18n/locales/en.json
- src/renderer/src/components/native-chat/native-chat-task-list-frames.ts
- src/main/codex/codex-structured-item-translation.test.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 1 remains after this review.
| for (const message of messages) { | ||
| const projection = projectMessage(message) | ||
| if (projection.list) { | ||
| list = projection.list |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift
Preserve the preceding snapshot and its tool family.
Line 59 overwrites the prior valid list. The returned state then contains only the final tool-agnostic list. projectMessage also removes the source tool blocks from the transcript.
The renderer cannot compare successive TodoWrite or update_plan lists, scope comparisons by tool family, or render updates before the full current checklist. Return task-list history or an explicit previous/current update model with the originating tool family. Update the renderer and tests to consume that model.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — delta since the prior pullfrog review (commit cc5d6f1).
- Pinned panel replaces diffed checklists —
NativeChatTaskListis now a single uncontrolledCollapsible("Tasks" +completed/total+ chevron) pinned above the composer, rendering the full checklist directly with no per-call diff rows. - State projection —
native-chat-task-list-state.tsreplaces the predecessors/history module with one pass over the transcript that keeps the latest valid snapshot and strips consumed task-call/result blocks, leaving prose and other tools intact. - Dead code removed —
diffNativeChatTaskLists,NativeChatTaskChange, the change-label i18n strings, and thepreviousTodoWrite/previousUpdatePlanprop threading throughNativeChatMessageRow/NativeChatToolRunare all gone;update_plannow shares thetodoListglyph. - Both prior nits resolved — the sr-only status-prefix duplication and the non-
in_progressactiveFormdiff were anchored to the removed diff feature and no longer apply.
The projection keeps transcript length/order 1:1, so the pre-computed turnKeys/latestUserIndex indices stay aligned; failed/isError/malformed calls remain in the transcript with diagnostics; and MessageRow already returns null for empty rows, so consumed notification frames render no ghost bubble.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
ℹ️ No critical issues — the restored diff feature re-introduces the two minor nits that were previously resolved by its removal.
Reviewed changes — delta since the prior pullfrog review (commit cc5d6f1).
- Restored inline diff checklists —
diffNativeChatTaskLists/NativeChatTaskChangeandnative-chat-task-list-history.ts(nativeChatTaskListPredecessors+buildNativeChatTaskListRows) are back: the firstTodoWrite/update_plancall renders the full list, later updates render added/removed/started/completed/changed rows with a full-list disclosure. - Dual-surface rendering —
NativeChatTaskListgainspreviousandpresentationprops: inline rows diff against predecessors, while the pinned panel usespresentation="composer"for the latest snapshot. - State projection no longer consumes blocks —
native-chat-task-list-state.tsnow returnsmessagesunchanged and only selects the latest snapshot, so task calls/results stay in the transcript for the inline renderer. - Merged
origin/main— reconciled the transcript projection, resolution receipts, and diff navigation with the task-list wiring.
The restored diff/normalizer logic is byte-for-byte the code reviewed and approved earlier, and the composer-panel presentation is a clean addition. The two nits below are the same observations raised on the original diff design; they went away when the feature was removed and have returned verbatim with this restoration.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
| )} | ||
| > | ||
| <Icon aria-hidden className="mt-0.5 size-3.5 shrink-0" /> | ||
| <span className="sr-only">{statusLabel(task)}: </span> |
There was a problem hiding this comment.
In diff mode label already carries the change verb (e.g. Completed Read), so this unconditional sr-only prefix makes screen readers announce redundant text like Completed: Completed Read. Skip the {statusLabel(task)}: prefix when a label is passed.
| : 'pending', | ||
| task | ||
| }) | ||
| } else if (before.activeForm !== task.activeForm) { |
There was a problem hiding this comment.
activeForm is stored on every todowrite task regardless of status, but nativeChatTaskLabel only surfaces it while in_progress. This branch therefore reports an updated diff when a completed or pending task's activeForm changes, even though changeLabel collapses the label back to the plain content with no visible difference. Compare activeForm only when task.status === 'in_progress'.
#19230 added a second import of the same module, and the focused code-quality gate (import/no-duplicates, --deny-warnings) fails every PR opened on main since it merged. Claude-Session: 1fec75fd-224b-46ab-95fe-d88e0f3d9ff9








Agent task updates render as inline checklists in the transcript, alongside a collapsible current-progress panel above the composer. The first list shows every task; later updates show added, removed, started, completed, and changed tasks with a full-list disclosure.
Claude
TodoWrite, Codexupdate_plan, and live Codexturn/plan/updatednotifications use the same normalizer. Historical baselines are scoped by tool name, task identity uses content plus occurrence, and prepending history updates memoized predecessor props. The composer keeps the latest successful snapshot across follow-up turns and pagination, preserves its disclosure during updates, and clears on an explicit empty list. Failed and malformed calls retain their transcript diagnostics.Merged
origin/mainwhile preserving transcript caching, resolution receipts, and diff navigation. Validation: 154 tests passed across 14 focused suites, and changed-file oxlint passed. Hidden macOS Electron CDP captures show the first inline checklist, a subsequent update diff, and the expanded composer panel together in light and dark themes using a seeded on-disk Claude transcript in a folder workspace. Typecheck remains with the coordinator; live provider delivery, SSH, Windows, and Linux were not exercised.