Repository navigation
fix(ui): expand collapsed task progress on final - #137569
Conversation
Co-authored-by: VACInc <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: blocked before merge. Reviewed September 3, 2026, 5:42 PM ET / 21:42 UTC. ClawSweeper reviewWhat this changesThe PR makes an enabled task-progress disclosure collapse for each active run, expand once on that run’s successful final response, and preserve manual toggles between updates. Merge readiness⛔ Blocked before merge - 1 item remains Keep open: this is a focused repair for a current Control UI lifecycle gap, and its maintainer label requires normal maintainer handling rather than automated cleanup. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI receives session progress and chat-run state from the Gateway, then renders a task-progress disclosure beside the chat composer. This change uses the run identity already projected into the chat UI to decide when that disclosure should change state. flowchart LR
A[Gateway run events] --> B[Chat pane state]
B --> C[Composer run identity]
C --> D[Progress disclosure owner]
E[Browser collapse preference] --> D
D --> F[Task progress details]
F --> G[Visible final response context]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +46, Tests +249. Total +295 across 6 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep exact run matching in the existing disclosure owner; no net-neutral alternative can distinguish a matching final from stale or repeated terminal events without obscuring that lifecycle state. Do we have a high-confidence way to reproduce the issue? Yes—current-main source deterministically preserves the disclosure’s prior state on a terminal rerender, while the added focused tests define the matching-final scenario. Is this the best way to solve the issue? Yes—the existing details-element owner is the narrowest boundary that can retain active and completed run identity without replaying stale finals or overriding same-run manual toggles. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 6b788ee87f5e. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Land-ready evidence is complete for
ClawSweeper's production-growth note is accepted: @VACInc requested and co-authored this exact lifecycle, and the review agrees the existing details-element owner is the narrowest state owner that can reject stale/repeated finals. Its media-proof limitation was a reviewer DNS failure; the artifact decoded as an 11.68-second VP8 WebM and representative full-resolution frames were inspected before upload. |
|
Additional idle/continuation proof at unchanged PR head
The apparent bounce in the earlier proof was caused by that test deliberately exercising manual close and reopen after the final. This slower recording performs no post-final disclosure interaction and reproduces no automatic rubber-banding. Video: 22.4 seconds, 1280×900, VP8/WebM; decoded and inspected frame-by-frame before upload. task-progress-idle-continuation.webmNo source or PR-head change was required; exact-head CI remains green. |
…date-command * origin/main: fix(ci): retry transient npm advisory timeouts (#137716) fix: keep restored Usage navigation from being replaced by Chat (#137402) fix: keep Usage day totals within the selected session scope (#137396) refactor: reduce live digest scheduling allocations (#137655) fix(ui): submit selected slash arguments in new sessions (#137571) fix(ui): expand collapsed task progress on final (#137569) fix(test): prevent auth discovery from stalling MCP replacement proof (#137639) test(cli): reuse canonical directory mock call helper (#137640)
Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: VACInc <[email protected]>
Follow-up to #132137
Requested and co-authored by @VACInc.
What Problem This Solves
Fixes an issue where users who enabled Collapse task progress by default would still have the task list hidden after the assistant's final response. The useful completed task context remained available, but required reopening the disclosure manually.
Why This Change Was Made
The composer now binds disclosure transitions to exact run IDs. With the preference enabled, each new run collapses the task list, same-run updates preserve manual disclosure choices, and the matching successful final expands it once. Reloaded cards, interrupted runs, repeated renders, and stale finals do not reopen the list. The setting hint now describes the full lifecycle.
User Impact
Users can keep task progress out of the way while work is active and automatically see the completed list beside the final response. Starting another run collapses it again. With the preference disabled, disclosure behavior is unchanged.
Evidence
session-progress-card.test.tsfailed because the card stayed collapsed after a successful final.node scripts/check-changed.mjspnpm test:changed— 4 UI shards passed, including 13,434 UI tests, isolated/browser suites, and the full five-case progress-card E2E file.node scripts/run-vitest.mjs ui/src/components/session-progress-card.test.ts ui/src/e2e/session-progress-live-placement.e2e.test.ts— 34 component tests and 5 mocked-Gateway E2E tests passed after the final rebase.bee8fbdc64c109ec46f0a7906f955cf1f2b57ed4.task-progress-final-expand-cycle.webm
Collapsed before the final
Expanded with the final
Collapsed again for the next run
Review metrics
Worked on by