Repository navigation
feat(ui): refresh work progress without adding a chat message - #154044
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. Reviewed September 20, 2026, 6:37 PM ET / 22:37 UTC (Revision 3). ClawSweeper reviewWhat this changesAdds a progress-card refresh button and authorized Gateway request that updates task status without inserting a visible chat message. Merge readiness⛔ Needs changes before merge - 3 items remain The feature remains useful and absent from main. Earlier retry repairs address normal completion and missed updates, but idle refresh admission and queued cancellation still have concrete correctness defects. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI displays progress cards saved by the agent through the Gateway. Refresh requests enter the existing chat admission and steering pipeline, while saved-card revisions determine whether the UI reports success. flowchart TD
A[Refresh button] --> B[Gateway authorization]
B --> C{Active work accepts steering?}
C -->|Yes| D[Existing agent turn]
C -->|No| E[Hidden status turn]
D --> F[Saved progress card]
E --> F
F --> G[Revision check and UI update]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +700, Tests +1947, Docs +12, Other +45. Total +2704 across 55 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep saved cards authoritative, separate hidden presentation from run liveness, and settle refresh retry identities on both completion and cancellation. Do we have a high-confidence way to reproduce the issue? Yes, source establishes deterministic PR-head paths: an idle refresh reaches the rejecting session-preparation callback, and queued cancellation removes the receipt owner before settlement. Neither path was executed during this read-only review. Is this the best way to solve the issue? The existing Gateway admission and card-storage owners are the right integration points, but the patch must distinguish presentation visibility from execution liveness and terminalize cancelled queued refreshes. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0a9d65e3b7b6. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
|
Worked on by: - @steipete - @shakkernerd Co-authored-by: steipete <[email protected]> Co-authored-by: shakkernerd <[email protected]> OpenClaw-Publication: d2d91917-0d1c-4b51-b6d6-08b345a1ee4b
Co-authored-by: steipete <[email protected]> Co-authored-by: shakkernerd <[email protected]>
2152a9c to
83ed099
Compare
Co-authored-by: steipete <[email protected]> Co-authored-by: shakkernerd <[email protected]>
Co-authored-by: steipete <[email protected]> Co-authored-by: shakkernerd <[email protected]>
…aw#154044) * feat(ui): refresh work progress without adding a chat message Worked on by: - @steipete - @shakkernerd Co-authored-by: steipete <[email protected]> Co-authored-by: shakkernerd <[email protected]> OpenClaw-Publication: d2d91917-0d1c-4b51-b6d6-08b345a1ee4b * fix(ui): recover progress refresh retries without duplicate work Co-authored-by: steipete <[email protected]> Co-authored-by: shakkernerd <[email protected]> * fix(protocol): align generated refresh method order Co-authored-by: steipete <[email protected]> Co-authored-by: shakkernerd <[email protected]> * fix(ui): allow retry after queued progress refresh settles Co-authored-by: steipete <[email protected]> Co-authored-by: shakkernerd <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: steipete <[email protected]> Co-authored-by: shakkernerd <[email protected]>
What Problem This Solves
A saved task-progress card can become stale while work continues. Refreshing it currently requires a visible chat request, which adds noise and does not distinguish requesting an update from receiving a saved update.
User Impact
Adds a small refresh button to expanded and collapsed composer progress cards. It asks the agent to reconcile the card with current work, blockers and next steps without inserting a visible chat message. Pending, retry and updated states preserve the draft, transcript, disclosure and previous card. Success requires a newer authoritative saved-card revision. Read-only projections remain read-only.
Why This Change Was Made
Uses a typed, authorized progressCard.refresh RPC and the existing trusted internal steering path rather than a browser-generated chat.send. The original caller principal and session lifecycle checks are retained. A standalone refresh has restricted tools and hidden transcript/delivery projections; steering existing work does not replace its tools or visible reply. Refresh input cannot answer pending human-input requests, and an unconfirmed steering receipt cannot abort independently authorized work.
Requested by and implemented with @steipete.
Evidence
No Gateway deployment or restart is included. Exact-head PR CI and native landing gates remain to be completed.
Before
After
Test cost and CI repair notes
Each local row is the wall time of one complete
node scripts/run-vitest.mjs run <file> --maxWorkers=1invocation, including startup/transformation. The first 13 files were measured at83ed099; the final two were measured on the queued-repair candidate. All 15 files passed. On hosted run 35540198874, the refresh browser file passed all three cases in 3.984 s. The bundled Gateway logs expose only partial per-case timing lines rather than complete file durations; no full-file CI times are inferred from those partial sums.src/agents/harness/transcript-visibility.test.tssrc/agents/session-tool-result-guard.visibility.test.tssrc/auto-reply/reply/reply-run-registry.visibility.test.tssrc/auto-reply/reply/session.heartbeat-no-reset.test.tssrc/auto-reply/reply/source-reply-delivery-mode.test.tssrc/gateway/server-methods-list.test.tssrc/gateway/server-methods/progress-card-refresh.integration.test.tssrc/gateway/server-methods/progress-card-refresh.test.tssrc/gateway/server-methods/progress-card.authorization.test.tsui/src/components/session-progress-card-refresh.test.tsui/src/lib/session-progress-cards.test.tsui/src/pages/chat/chat-composer-progress-refresh.test.tsui/src/pages/chat/chat-pane-identity.test.tssrc/gateway/server-methods/progress-card-refresh.queued.test.tssrc/gateway/server-methods/chat-send-dispatch-errors.test.tsThe browser file
ui/src/e2e/session-progress-refresh.e2e.test.tspreviously passed all three scenarios in 16.38 s reported suite duration on Blacksmith Testbox (not a live-provider test). This composition exercises the rendered application, real disclosure/DOM identity and draft/transcript preservation that store-only tests cannot prove.Initial CI failures were diagnosed rather than blindly rerun: method registration shifted advertised indices (fixed here by appending the new method); the task-identifier test imported the moved codec binding from the SQLite module (upstream fix #153988); the stylelint fixture expectation omitted a TS fixture present on the merge ref (upstream fix #153061). The latter two fixes are included in the branch base. The security resolver hit GitHub installation rate limiting. The follow-up run on
83ed099completed with only generated Kotlin method-order drift and its aggregate gate failing; the canonical generator repaired that drift andpnpm protocol:checkpasses. The final queued-completion repair and generated correction are published atfc8765eef0886dbb5923746fbf9c2fce6564d63c; its own CI is required before landing.Worked on by
Work sessions
View the OpenClaw team session