Repository navigation
refactor: simplify update state and test setup - #147993
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. Reviewed September 14, 2026, 3:15 PM ET / 19:15 UTC (Revision 15). ClawSweeper reviewWhat this changesSimplifies the update dialog’s temporary state, reuses shared browser-test setup, and removes redundant waits and assertions while aligning cloud reply fixtures. Merge readiness✅ Ready for maintainer review Keep open: this is a coherent, maintainer-owned cleanup with no actionable correctness findings. The remaining simplification is not already on main, and the related merged repairs do not supersede it. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI update dialog receives operator actions and Gateway progress snapshots, then displays confirmation, progress, and recovery feedback. The update controller continues to own requests and reject stale responses. flowchart LR
A[Operator update action] --> B[Update dialog]
B --> C[Update controller]
C --> D[Gateway update requests]
D --> E[Progress snapshot]
E --> B
B --> F[Progress and recovery feedback]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -12, Tests -47. Total -59 across 5 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep one dialog request state and derive connection and read-error feedback from the existing progress snapshot, preserving the controller’s request ownership. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR proposes behavior-preserving cleanup rather than a new bug fix. Source and retained assertions were inspected; no tests were executed during this read-only review. Is this the best way to solve the issue? Yes: reusing the progress snapshot and shared browser fixture removes duplicate ownership while preserving the existing observable contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b8de9f88996b. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (14 earlier review cycles; latest 8 shown)
|
b1035cc to
9ce92d5
Compare
efca502 to
e2e9a07
Compare
Keep connection and read-error facts in the progress snapshot, represent status checks with one request state, and reuse the recovery predicate. Remove redundant test waits and the warning assertion covered before registry lookup. Preserve the behavior introduced in #147883.
Keep the existing accent and persistence assertions while replacing the private mock-dev subprocess with the suite-owned server and a signed-in mock Gateway.
69a1a70 to
8c949de
Compare
Use the same durable assistant reply and producer run identity in history and live events. Preserve cloud recovery assertions and deadlines when terminal delivery precedes the persisted reply.
Route the real shared-state consumer through the existing isolated infra forks and exclude it from the wizard thread pool. Preserve recovery assertions and broker admission guards after the metadata-worker migration.
Main now routes wizard recovery through the database forks and excludes it from the wizard thread pool (#148337). Remove this PR's duplicate changes so the final merged list contains the test exactly once.
Preserve main's separate check warnings, recorded update failure, and successful-recovery assertions while retaining the simpler dialog state and awaited-request test cleanup. Keep one wizard recovery registration.
Choose Twitch through the current two-option button instead of the retired radio and Continue controls. Preserve the typed answer, single session rotation, and no-replay assertions after the UI change in #148300.
|
Merged via squash.
|
* refactor(update): consolidate status check state Keep connection and read-error facts in the progress snapshot, represent status checks with one request state, and reuse the recovery predicate. Remove redundant test waits and the warning assertion covered before registry lookup. Preserve the behavior introduced in openclaw#147883. * test(ui): reuse shared server for accent selection Keep the existing accent and persistence assertions while replacing the private mock-dev subprocess with the suite-owned server and a signed-in mock Gateway. * test(ui): keep cloud recovery history consistent Use the same durable assistant reply and producer run identity in history and live events. Preserve cloud recovery assertions and deadlines when terminal delivery precedes the persisted reply. * test(wizard): run recovery integration in the broker host Route the real shared-state consumer through the existing isolated infra forks and exclude it from the wizard thread pool. Preserve recovery assertions and broker admission guards after the metadata-worker migration. * chore(test): drop routing changes already landed on main Main now routes wizard recovery through the database forks and excludes it from the wizard thread pool (openclaw#148337). Remove this PR's duplicate changes so the final merged list contains the test exactly once. * fix(test): remove duplicate wizard recovery registration The independent routing additions in openclaw#148337 and openclaw#147684 registered the same test twice and stopped CI shard planning. Retain the canonical entry after setup.test.ts and remove the duplicate before it. * test(custodian): follow immediate wizard choices Choose Twitch through the current two-option button instead of the retired radio and Continue controls. Preserve the typed answer, single session rotation, and no-replay assertions after the UI change in openclaw#148300.
Release CLI progress resources even when the final run-history read fails. Use the report owner's identity classification for version badges, so missing evidence is unverified while observed version/build mismatches still fail. Keep updater execution and recorded outcomes unchanged. Remove copied test translations, redundant coverage and guards, unnecessary type assertions, and comment repetition. Preserve real localization, connection ownership, recovery, and receipt contracts. Validation: both regressions fail before and pass after; 202 selected tests pass with current pinned dependencies; independent P2 review is clean. Synthetic before/after UI proof makes no update requests. Related: #147993, #147553.
* fix(update): stop stuck spinners and show unverified identity Release CLI progress resources even when the final run-history read fails. Use the report owner's identity classification for version badges, so missing evidence is unverified while observed version/build mismatches still fail. Keep updater execution and recorded outcomes unchanged. Remove copied test translations, redundant coverage and guards, unnecessary type assertions, and comment repetition. Preserve real localization, connection ownership, recovery, and receipt contracts. Validation: both regressions fail before and pass after; 202 selected tests pass with current pinned dependencies; independent P2 review is clean. Synthetic before/after UI proof makes no update requests. Related: #147993, #147553. * test(update): record installed version in coalesced restart fixture * fix(models): await saved API key configuration Wait for the existing Gateway configuration application receipt before refreshing saved credentials. Preserve reload policy, concurrent credential guards, and saved-but-unconfirmed warnings in the CLI and Models RPC. * ci: keep combined test partitions within capacity Return heartbeat test roots to infrastructure after independent main-branch rebalances jointly overfilled services. Preserve all 10,601 canonical roots, graph limits and runtime routing. * test(qa): align automation management ownership proof Adopt the configured-owner fixture repair from #148769 (508ad6e). Preserve the actual non-owner denial boundary, unchanged job and run state, creator policy, and Control UI management lifecycle. Keep session_status available in the fixture so a non-owner reaches the provider after owner-only automations are removed. Co-authored-by: Vincent Koc <[email protected]> --------- Co-authored-by: Vincent Koc <[email protected]>
* fix(update): stop stuck spinners and show unverified identity Release CLI progress resources even when the final run-history read fails. Use the report owner's identity classification for version badges, so missing evidence is unverified while observed version/build mismatches still fail. Keep updater execution and recorded outcomes unchanged. Remove copied test translations, redundant coverage and guards, unnecessary type assertions, and comment repetition. Preserve real localization, connection ownership, recovery, and receipt contracts. Validation: both regressions fail before and pass after; 202 selected tests pass with current pinned dependencies; independent P2 review is clean. Synthetic before/after UI proof makes no update requests. Related: openclaw#147993, openclaw#147553. * test(update): record installed version in coalesced restart fixture * fix(models): await saved API key configuration Wait for the existing Gateway configuration application receipt before refreshing saved credentials. Preserve reload policy, concurrent credential guards, and saved-but-unconfirmed warnings in the CLI and Models RPC. * ci: keep combined test partitions within capacity Return heartbeat test roots to infrastructure after independent main-branch rebalances jointly overfilled services. Preserve all 10,601 canonical roots, graph limits and runtime routing. * test(qa): align automation management ownership proof Adopt the configured-owner fixture repair from openclaw#148769 (508ad6e). Preserve the actual non-owner denial boundary, unchanged job and run state, creator policy, and Control UI management lifecycle. Keep session_status available in the fixture so a non-owner reaches the provider after owner-only automations are removed. Co-authored-by: Vincent Koc <[email protected]> --------- Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
The update dialog and its tests carry overlapping state and repeated setup left by #147883.
User Impact
No intended product behavior or appearance change. Update feedback, stale-response handling, retry confirmation, disconnect handling, and the early disk warning remain covered.
Why This Change Was Made
Use one dialog request state and the existing progress snapshot. Remove redundant test waits and an assertion, reuse the shared appearance server, and give saved and live cloud replies consistent producer metadata. Five files, 59 lines removed overall.
Related: #147883. Main's update-check warnings and shared cloud history remain intact. Earlier qualification repairs landed in #148425 and #148444; neither is duplicated here. The later main-only registry regression from #148451 is tracked separately by #148493.
Evidence
Current-head CI passed, including all UI/browser and Node suites. GitHub reports 116 successful checks and no pending or failed checks. ClawSweeper also reviewed this exact head without actionable findings. The previous run failed only in plugin runtime inspection, where a valid-config fixture intermittently produced an invalid-config reply; all other jobs passed. That separate failure did not recur in the current full CI run; its cause remains under investigation. Passing standalone and Linux replays did not establish a cause, and this PR adds no speculative plugin repair. Failed or canceled runs are not passing gates.