Repository navigation
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 maintainer review before merge. What this changesHide browser-cached question summaries and notices created before the latest session reset marker. Example: Answer “Which initial output should I use?” with “Text,” receive an observer warning, then send /reset.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR provides a focused, browser-proven fix for a current reset-display bug, with no actionable findings; current-head CI is still running. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI transcript builder combines Gateway history with browser-held questions and notices to produce visible chat rows. flowchart TD
A[Gateway history] --> D[Transcript builder]
B[Browser questions] --> D
C[Browser notices] --> D
D --> E[Reset boundary filtering]
E --> F[Visible chat rows]
Technical reviewBest possible solution: Use the existing transcript reset marker to exclude earlier browser-only rows, as this PR does. Do we have a high-confidence way to reproduce the issue? Current-main source exposes both missing reset cutoffs, supported by the released-version report and inspected before/after browser evidence; no target code was executed during this review. Is this the best way to solve the issue? This is the smallest complete fix within the existing transcript owner: derive one cutoff and apply it to both browser-only projections without adding state or changing other sessions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4f5bb1da41e4. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +8, Tests +73. Total +81 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 21, 2026, 3:58 PM ET / 20:58 UTC (Revision 2). |
- The regression now mounts a chat pane, reloads history through a cursor reset onto a transcript that starts with a reset marker, and asks a new question in the same pane afterwards. - It replaces the render-only case, which covered the same boundary.
|
Maintainer browser check: real isolated Gateway, built Control UI, Chromium. Base is main at 2c47390; this PR is at 48dddba. Screenshots, in order: base after Regression |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Maintainer override: the one red job on this head is inherited, not caused by this PR.
|
|
Merged in c8dffcd. Thanks @jipeng6036-del for the fix and @NovaeonStudio for the clear report in #203215. After |
Root cause: ui/src/pages/chat/chat-thread-build.ts:500 (notices) and :577 (question summaries) placed the browser-only observer notices and answered question summaries by timestamp, without checking the reset divider the same build emits at :262. So after `/reset` they stayed above "Session reset" until reload. Closes openclaw#203215 ## What Problem This Solves After a chat reset, the Control UI can still show an earlier answered question and a system notice above the reset divider. The Gateway history is already clear, but the browser can still have those rows cached. ## User Impact The reset divider starts the cleared transcript. Questions and notices from later activity still appear in the same chat. ## Why This Change Was Made The transcript already reads the reset marker from Gateway history. The same projection now uses its timestamp to filter cached questions and notices from earlier turns. Thanks @NovaeonStudio for isolating the two stale rows and checking the Gateway history. ## Evidence On Windows, I ran a local OpenClaw Gateway in Chromium with a scripted chat provider and a failing utility provider. I answered a question, waited for the actual observer warning, then sent `/reset`. On `ed8af5b`, both old rows stayed above the divider. On `ed525f7`, both disappeared, and a new question could still be answered. In both runs, the Gateway returned the reset marker and an empty question list. I also kept an answered question in a second session across the reset and confirmed the cleared transcript after reconnecting. The new regression fails on the base. The four relevant UI test files pass (42 tests), along with `pnpm check:changed --staged`. ### Clean comparison **Before**  **After**  ### Annotated comparison **Before**  **After**  ### Maintainer browser check Re-checked on a real isolated Gateway with the built Control UI in Chromium, using the same scenario: a scripted model that runs commands and then asks one `ask_user` question, plus a utility model that always fails so the observer notice appears. The post-reset question is asked in the same tab, before any reload. Base is main at 8b61bc2; this branch is 48dddba: | Step | Base | This PR | |---|---|---| | A after `/reset`, same tab | old question card and observer notice above the divider | only the divider, `/reset`, and the reply | | New question in A after the reset, same tab | n/a | question card and notice shown below the divider | | Session B, same tab | its question and notice shown | its question and notice shown | | A after reload | clean | clean | Screenshots and observed lines: openclaw#203274 (comment) A maintainer commit on top swaps the render-only unit case for one regression in `chat-pane-retired-event.test.ts`. That test mounts a real pane, loads history through the path the browser takes (the cursor read returns `kind: "reset"`, then a full transcript that starts with a reset marker), and asks a new question in the same pane afterwards. It fails on the base (`expected [ 'notice', 'before-reset' ] to deeply equal []`) and passes here. Size: Control UI gzip +54 B, all in `control-ui-boot-chat-styles`. Production +13/−5 lines, tests +73/−0. This replaces openclaw#203288, a maintainer PR that made the same change. **Merge danger:** two-way door. This changes display only and writes no state, so a revert fully undoes it. If it's wrong, the worst case is a Control UI chat hiding a question card or notice that should show after a reset. Co-authored-by: Ayaan Zaidi <[email protected]>
…#203236) * fix(update): back off identical automatic update failures Automatic campaigns retried a target that kept failing the same way before activation (for example managed-service-stop-failed) every hour forever. One install accumulated ~330 failed runs, each costing a validation pass and a candidate state snapshot. The campaign already used the newest terminal run rows as its durable backoff fact for repeated activation failures. Extend that streak to every identical failure class for the same target: keep the hourly first retry, then wait 2, 4, 8 and 16 hours and once a day after six. A new target, a success, or a manual update breaks the streak. No new state, store, or config. Refs #202954 * test(update): assert backoff expiry before the new-candidate reset Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit adc0876) Companion audit: #203194 and #203497 change update architecture and are not needed by the backoff; #203274 is chat reset cleanup, #203528 is node credential repair, and #203578 adds a separate database custody refusal. #203152 addresses stopping a Gateway after a Node runtime respawn, not pre-mutation outcome history; no dependency on that process-shutdown repair. Co-authored-by: RomneyDa <[email protected]>





Root cause: ui/src/pages/chat/chat-thread-build.ts:500 (notices) and :577 (question summaries) placed the browser-only observer notices and answered question summaries by timestamp, without checking the reset divider the same build emits at :262. So after
/resetthey stayed above "Session reset" until reload.Closes #203215
What Problem This Solves
After a chat reset, the Control UI can still show an earlier answered question and a system notice above the reset divider. The Gateway history is already clear, but the browser can still have those rows cached.
User Impact
The reset divider starts the cleared transcript. Questions and notices from later activity still appear in the same chat.
Why This Change Was Made
The transcript already reads the reset marker from Gateway history. The same projection now uses its timestamp to filter cached questions and notices from earlier turns.
Thanks @NovaeonStudio for isolating the two stale rows and checking the Gateway history.
Evidence
On Windows, I ran a local OpenClaw Gateway in Chromium with a scripted chat provider and a failing utility provider. I answered a question, waited for the actual observer warning, then sent
/reset. Onadc0876, both old rows stayed above the divider. Oned525f7, both disappeared, and a new question could still be answered. In both runs, the Gateway returned the reset marker and an empty question list. I also kept an answered question in a second session across the reset and confirmed the cleared transcript after reconnecting.The new regression fails on the base. The four relevant UI test files pass (42 tests), along with
pnpm check:changed --staged.Clean comparison
Before
After
Annotated comparison
Before
After
Maintainer browser check
Re-checked on a real isolated Gateway with the built Control UI in Chromium, using the same scenario: a scripted model that runs commands and then asks one
ask_userquestion, plus a utility model that always fails so the observer notice appears. The post-reset question is asked in the same tab, before any reload. Base is main at 2c47390; this branch is 48dddba:/reset, same tab/reset, and the replyScreenshots and observed lines: #203274 (comment)
A maintainer commit on top swaps the render-only unit case for one regression in
chat-pane-retired-event.test.ts. That test mounts a real pane, loads history through the path the browser takes (the cursor read returnskind: "reset", then a full transcript that starts with a reset marker), and asks a new question in the same pane afterwards. It fails on the base (expected [ 'notice', 'before-reset' ] to deeply equal []) and passes here.Size: Control UI gzip +54 B, all in
control-ui-boot-chat-styles. Production +13/−5 lines, tests +73/−0.This replaces #203288, a maintainer PR that made the same change.
Merge danger: two-way door. This changes display only and writes no state, so a revert fully undoes it. If it's wrong, the worst case is a Control UI chat hiding a question card or notice that should show after a reset.