Repository navigation
fix: require a click before diagnosing failed updates - #157359
Conversation
Start update-failure diagnosis only from Settings > Updates. Retire queued requests when the connection, operator, or recorded failure changes, and preserve result dismissal persistence.
|
🦞👀 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. |
|
Browser proof manifest for the explicit update diagnosis change. All captures use synthetic data; no Doctor or real updater was invoked. The captioned videos derive from the original recordings linked below. explicit-diagnosis-before-raw.webmexplicit-diagnosis-after-raw.webmReproduction contract, source identity, observations, and artifact hashes{
"repository": "https://github.com/openclaw/openclaw",
"provider": "local macOS arm64, Node 24.20.0, Playwright 1.63.0 Chromium",
"fixture": "Synthetic automatic npm update campaign followed by ENOSPC failure through the native Control UI mock Gateway WebSocket. No live services or user state.",
"entrypoint": "Settings > Updates",
"captureCommand": "node --import ./scripts/tsx.mjs <capture.mts> base|head",
"assertions": "Base automatically submits one diagnosis. Head emits zero passive requests, exactly one on Diagnose update click, zero update.run requests, and zero replay after reload.",
"proofLimit": "Real browser and UI request boundary, mocked diagnostic backend. No actual Doctor or updater invocation. Current build values shown in the app are fixture metadata; exact checkout SHAs are recorded here and in video captions.",
"redactions": "None. All recorded UI and traffic values are synthetic. Captioned MP4s derive from untouched WebM, with declared startup speedup and captions.",
"inspection": "Before/after screenshots and complete raw/captioned contact sheets inspected. No private content, invitation card, or recording corruption.",
"records": [
{
"phase": "base",
"sha": "dbd7453fd2ff2db7192fdbef4515404d80be7cc2",
"result": "RED: passive failure starts diagnosis",
"observations": [
{
"stage": "passive automatic diagnosis",
"diagnosticRequests": 1,
"updateRuns": 0
}
],
"browserErrors": [],
"artifacts": [
{
"file": "base-BWVM5L/01-applying.png",
"bytes": 157693,
"sha256": "f896d306516e86ad7cce5e1b88e935a79a90f7fae0b3bb16e70d6e4b74ea1a6e"
},
{
"file": "base-BWVM5L/03-diagnosis.png",
"bytes": 213692,
"sha256": "18dfd2a13e5f401774f13d7c3e6e1dc3bc95a1d401f09c886208fd0dd9d91c05"
},
{
"file": "base-BWVM5L/contact-sheet.png",
"bytes": 392512,
"sha256": "5912e8b9ddeee6a8af57e0f97a505667a3916391e0d56e993305a0c2056f6b15"
},
{
"file": "base-BWVM5L/[email protected]",
"bytes": 662386,
"sha256": "1771e1d05189bc9b801eab22863a88d6a1a392e286d8b18eb486ad4958eb94cc"
},
{
"file": "base-BWVM5L/proof.mp4",
"bytes": 269627,
"sha256": "61aedb8bd21b9841949fa003ebdd6ca2e674c9cccc7e06698ead9d99f938af7f"
},
{
"file": "base-BWVM5L/raw-contact-sheet.png",
"bytes": 422055,
"sha256": "3910de788f526bfd5aee32da1f68ca2d49071854ce352b04f5d1ce2895a78442"
}
]
},
{
"phase": "head",
"sha": "09226530d7351559ccec6f07cce8f1ea147b7dda",
"result": "GREEN: explicit action only",
"observations": [
{
"stage": "passive failure",
"diagnosticRequests": 0,
"updateRuns": 0
},
{
"stage": "explicit click",
"diagnosticRequests": 1,
"updateRuns": 0
},
{
"stage": "reload",
"newDiagnosticRequests": 0,
"totalDiagnosticRequests": 1,
"updateRuns": 0
}
],
"browserErrors": [],
"artifacts": [
{
"file": "head-5Ablkl/01-applying.png",
"bytes": 157693,
"sha256": "f896d306516e86ad7cce5e1b88e935a79a90f7fae0b3bb16e70d6e4b74ea1a6e"
},
{
"file": "head-5Ablkl/02-awaiting-action.png",
"bytes": 164838,
"sha256": "08da82255472fa1c8008d3e31669ca0cb116de0f27b14557bb3d800978c5564e"
},
{
"file": "head-5Ablkl/03-diagnosis.png",
"bytes": 213727,
"sha256": "a430fb4d2c8718b06515620d7f9cd3b8e421a029012bce461de719cd21526c7a"
},
{
"file": "head-5Ablkl/04-no-replay.png",
"bytes": 164838,
"sha256": "08da82255472fa1c8008d3e31669ca0cb116de0f27b14557bb3d800978c5564e"
},
{
"file": "head-5Ablkl/contact-sheet.png",
"bytes": 424824,
"sha256": "d1b97d5ed98e5a4339ded9da500da3fc7c205e406230b8e03b46554d70b248b8"
},
{
"file": "head-5Ablkl/[email protected]",
"bytes": 858824,
"sha256": "47f4c74c9d601421f105851f948312f540305f5340d2107e90d8fb0b3bd13ba7"
},
{
"file": "head-5Ablkl/proof.mp4",
"bytes": 347263,
"sha256": "65d65c7fb80af7b206683fde05473350cf12977f2b5873b1ddd3af88d33ba9d2"
},
{
"file": "head-5Ablkl/raw-contact-sheet.png",
"bytes": 302635,
"sha256": "849d9801dbfe97deeb2fedfd36427b79a9cc72f7780b2bf14c7024fd70b9a173"
}
]
}
],
"candidateBundledSuite": {
"sha": "09226530d7351559ccec6f07cce8f1ea147b7dda",
"command": "node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/update-triage.e2e.test.ts",
"result": "5/5 passed; 1 file passed",
"wallSeconds": 25.07,
"vitestDurationSeconds": 22.53,
"testCaseSeconds": 7.734,
"cases": [
"manual failure",
"automatic failure",
"missing triage module",
"denied session storage",
"full session storage"
],
"productFilesEdited": []
},
"canonicalMovement": {
"publishedCandidate": "8f31b9d130ef054650f392ba623965d861de57bc",
"newBase": "14f4d2d3f19a1654cd63d1c551e2ab0085e11ef5",
"patchId": "95011169a31ace15dac614292d9af995ca9f529c",
"assessment": "No recapture needed: candidate UI source, UI fixtures, bundled E2E config, normalization and session-url packages unchanged. Movement changes gateway suspension status, Codex and Signal tests, CI fixture overhead and isolated Vitest include filtering. Synthetic browser proof does not call gateway suspension and uses unchanged bundled lane."
},
"captureHarnessIssue": {
"failedAttempt": "base-fe6rbo",
"reason": "tsx keepNames introduced __name into serialized traffic callback, so host counter stayed empty although the baseline diagnosis rendered. Disposable callback changed to literal init-script text; next base attempt passed. No product changes, timeouts, or assertions weakened."
},
"publishedArtifacts": [
{
"name": "before.png",
"url": "https://github.com/user-attachments/assets/e9baaa23-cf29-4449-a6e9-3d33bc04af13"
},
{
"name": "after.png",
"url": "https://github.com/user-attachments/assets/9ce15fdb-bed8-4bf5-b05b-2375b5b1d202"
},
{
"name": "before.mp4",
"url": "https://github.com/user-attachments/assets/f247b6f4-d206-47d5-9ba1-5ff0a9d9e664"
},
{
"name": "after.mp4",
"url": "https://github.com/user-attachments/assets/938e8341-33e8-45d6-817d-0ea2c4b4e46a"
},
{
"name": "before-raw.webm",
"url": "https://github.com/user-attachments/assets/caef3d10-b76f-48dc-bbb9-ec164ad9d083"
},
{
"name": "after-raw.webm",
"url": "https://github.com/user-attachments/assets/8c87bd29-511a-4701-b13a-fd282cb0c420"
}
]
} |
|
Codex review: blocked before merge. Reviewed September 24, 2026, 11:33 AM ET / 15:33 UTC. ClawSweeper reviewWhat this changesThe Control UI adds a Diagnose update button for recorded failures and starts assistant diagnosis only after it is clicked, with updated tests and recovery guidance. Merge readiness⛔ Blocked before merge - 3 items remain Keep open. Current main still starts diagnosis passively, while this PR has coherent browser evidence for the proposed behavior. Replacing the shipped automatic workflow requires an explicit product decision. Priority: P2 Review scores
Verification
How this fits togetherThe Gateway records update attempts and sends their status to the Control UI. Settings displays failures, and an authorized diagnosis request reaches Ask OpenClaw through the Gateway chat method. flowchart LR
A[Gateway update record] --> B[Control UI failure state]
B --> C[Settings Updates page]
C --> D{Operator clicks Diagnose?}
D -->|No| E[Failure stays visible]
D -->|Yes| F[Current authority check]
F --> G[Ask OpenClaw request]
Decision needed
Why: Automatic diagnosis is present in the latest release; replacing that default changes how unattended failures receive help, even though the proposed implementation is technically sound. Before merge
Agent review detailsSecurityNone. PR surfaceSource +21, Tests +52, Docs +6. Total +79 across 14 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one Settings diagnosis action bound to the current authenticated failure, with visible failure facts and a clear CLI recovery path when chat is unavailable. Do we have a high-confidence way to reproduce the issue? Yes. Current main calls failure triage during overlay publication without a click, and the supplied before capture shows the assistant opening; I did not execute a new reproduction. Is this the best way to solve the issue? Yes, if the consent-first default is accepted. Click admission and the final chat-send check address the unwanted request at its owning boundaries. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d9f63649ff08. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Maintainer decision: accept click-only Control UI diagnosis. Requiring an explicit Diagnose update action in Settings is the requested product behavior for this PR, including for unattended dashboards. Failures remain visible; opening, refreshing, and reconnecting must not start an assistant diagnostic request. This resolves the default-behavior decision and the three related before-merge items in the completed review. ClawSweeper reported no actionable code or security findings. CLI behavior remains as documented. CI and security review passed for |
|
Merged via squash.
|
* commit '02ad6b76b1a2ee2b414b170072e6e3e606fda3d4': (134 commits) fix(build): scope normalization declarations to package sources (#157174) fix: exit after validating Codex model references (#157323) fix(gateway): guard workspace adoption during active work (#157259) fix(update): rebuild stale Git runtimes when source is already current (#156996) fix: require a click before diagnosing failed updates (#157359) test(release): provide sealed artifact inputs to writer fixtures fix(ios): preserve chat state and adapt layout when iPad windows resize (#156683) fix(test): prepare native UI fixtures before compilation fix(test): await outbound delivery readiness before assertions fix: clarify deferred Codex catalog refresh warnings (#157352) fix(skills): refresh skills after watched directories are replaced (#156324) ci: reduce Node fixture overhead and defer seven release matrices (#157341) chore(test): stop Codex Computer Use and Signal batching tests flaking under load (#157334) fix(gateway): retain owned suspension status during restart (#157258) fix(ci): scope desktop status assertions to the selected worker chore(i18n): refresh native locales (#157337) test(daemon): use the native PowerShell probe budget (#157289) fix(exec): avoid gateway stalls during background task writes (#157177) test(cli): isolate preaction title setter state fix(test): synchronize Git backoff cancellation readiness (#157315) ...
* commit 'c4333da677cbdfe1bbaf783ed01c363ff39e93b8': (100 commits) fix(test): stop preflight mocks leaking into shared workers (#157207) fix(build): scope normalization declarations to package sources (#157174) fix: exit after validating Codex model references (#157323) fix(gateway): guard workspace adoption during active work (#157259) fix(update): rebuild stale Git runtimes when source is already current (#156996) fix: require a click before diagnosing failed updates (#157359) test(release): provide sealed artifact inputs to writer fixtures fix(ios): preserve chat state and adapt layout when iPad windows resize (#156683) fix(test): prepare native UI fixtures before compilation fix(test): await outbound delivery readiness before assertions fix: clarify deferred Codex catalog refresh warnings (#157352) fix(skills): refresh skills after watched directories are replaced (#156324) ci: reduce Node fixture overhead and defer seven release matrices (#157341) chore(test): stop Codex Computer Use and Signal batching tests flaking under load (#157334) fix(gateway): retain owned suspension status during restart (#157258) fix(ci): scope desktop status assertions to the selected worker chore(i18n): refresh native locales (#157337) test(daemon): use the native PowerShell probe budget (#157289) fix(exec): avoid gateway stalls during background task writes (#157177) test(cli): isolate preaction title setter state ...
* commit '02ad6b76b1a2ee2b414b170072e6e3e606fda3d4': (122 commits) fix(build): scope normalization declarations to package sources (#157174) fix: exit after validating Codex model references (#157323) fix(gateway): guard workspace adoption during active work (#157259) fix(update): rebuild stale Git runtimes when source is already current (#156996) fix: require a click before diagnosing failed updates (#157359) test(release): provide sealed artifact inputs to writer fixtures fix(ios): preserve chat state and adapt layout when iPad windows resize (#156683) fix(test): prepare native UI fixtures before compilation fix(test): await outbound delivery readiness before assertions fix: clarify deferred Codex catalog refresh warnings (#157352) fix(skills): refresh skills after watched directories are replaced (#156324) ci: reduce Node fixture overhead and defer seven release matrices (#157341) chore(test): stop Codex Computer Use and Signal batching tests flaking under load (#157334) fix(gateway): retain owned suspension status during restart (#157258) fix(ci): scope desktop status assertions to the selected worker chore(i18n): refresh native locales (#157337) test(daemon): use the native PowerShell probe budget (#157289) fix(exec): avoid gateway stalls during background task writes (#157177) test(cli): isolate preaction title setter state fix(test): synchronize Git backoff cancellation readiness (#157315) ...
* test(ui): cover stack-free tooltip disconnect cleanup * fix(build): scope normalization declarations to package sources Give normalization-core its own TypeScript project so declaration generation does not load the repository-wide source set. Preserve the existing DTS build command and compiler policy. * Merge normalization declaration scope for tooltip proof * commit '81aeccb3db80136a118d6d2f98b67d836ec25e51': fix(build): scope normalization declarations to package sources * fix(ui): avoid retaining tooltip anchors in abort reasons * Merge main to include native wrapper source inventory repair * commit '02ad6b76b1a2ee2b414b170072e6e3e606fda3d4': (134 commits) fix(build): scope normalization declarations to package sources (#157174) fix: exit after validating Codex model references (#157323) fix(gateway): guard workspace adoption during active work (#157259) fix(update): rebuild stale Git runtimes when source is already current (#156996) fix: require a click before diagnosing failed updates (#157359) test(release): provide sealed artifact inputs to writer fixtures fix(ios): preserve chat state and adapt layout when iPad windows resize (#156683) fix(test): prepare native UI fixtures before compilation fix(test): await outbound delivery readiness before assertions fix: clarify deferred Codex catalog refresh warnings (#157352) fix(skills): refresh skills after watched directories are replaced (#156324) ci: reduce Node fixture overhead and defer seven release matrices (#157341) chore(test): stop Codex Computer Use and Signal batching tests flaking under load (#157334) fix(gateway): retain owned suspension status during restart (#157258) fix(ci): scope desktop status assertions to the selected worker chore(i18n): refresh native locales (#157337) test(daemon): use the native PowerShell probe budget (#157289) fix(exec): avoid gateway stalls during background task writes (#157177) test(cli): isolate preaction title setter state fix(test): synchronize Git backoff cancellation readiness (#157315) ... Co-authored-by: Vincent Koc <[email protected]>
Start update-failure diagnosis only from Settings > Updates. Retire queued requests when the connection, operator, or recorded failure changes, and preserve result dismissal persistence.
* test(ui): cover stack-free tooltip disconnect cleanup * fix(build): scope normalization declarations to package sources Give normalization-core its own TypeScript project so declaration generation does not load the repository-wide source set. Preserve the existing DTS build command and compiler policy. * Merge normalization declaration scope for tooltip proof * commit '81aeccb3db80136a118d6d2f98b67d836ec25e51': fix(build): scope normalization declarations to package sources * fix(ui): avoid retaining tooltip anchors in abort reasons * Merge main to include native wrapper source inventory repair * commit 'f11e16cd65951f284264bd202b49984e21091cf5': (134 commits) fix(build): scope normalization declarations to package sources (openclaw#157174) fix: exit after validating Codex model references (openclaw#157323) fix(gateway): guard workspace adoption during active work (openclaw#157259) fix(update): rebuild stale Git runtimes when source is already current (openclaw#156996) fix: require a click before diagnosing failed updates (openclaw#157359) test(release): provide sealed artifact inputs to writer fixtures fix(ios): preserve chat state and adapt layout when iPad windows resize (openclaw#156683) fix(test): prepare native UI fixtures before compilation fix(test): await outbound delivery readiness before assertions fix: clarify deferred Codex catalog refresh warnings (openclaw#157352) fix(skills): refresh skills after watched directories are replaced (openclaw#156324) ci: reduce Node fixture overhead and defer seven release matrices (openclaw#157341) chore(test): stop Codex Computer Use and Signal batching tests flaking under load (openclaw#157334) fix(gateway): retain owned suspension status during restart (openclaw#157258) fix(ci): scope desktop status assertions to the selected worker chore(i18n): refresh native locales (openclaw#157337) test(daemon): use the native PowerShell probe budget (openclaw#157289) fix(exec): avoid gateway stalls during background task writes (openclaw#157177) test(cli): isolate preaction title setter state fix(test): synchronize Git backoff cancellation readiness (openclaw#157315) ... Co-authored-by: Vincent Koc <[email protected]>
Live fork patch. The failed-update triage was re-armed per browser tab, so an old failed run asked for a diagnosis on every app launch. Upstream openclaw#157359 moves diagnosis behind an explicit click; its Updates page change conflicts with the 2026.9.5 base, so live only drops the automatic trigger until it moves to a release that includes that PR.
Related: #157228
What Problem This Solves
Fixes the Control UI starting an update-failure diagnosis without an operator asking for one, including when opening or reconnecting another dashboard.
User Impact
After a failed update, choose Diagnose update on Settings → Updates to start diagnosis. Opening the dashboard, refreshing status, reconnecting, and receiving failure events stay passive. Diagnosis does not retry the update.
Why This Change Was Made
Each click authorizes one diagnosis for the current connection, operator, and recorded failure. New update facts or a changed connection retire a pending request before it can send. The automatic-diagnosis receipts are removed; result dismissal persistence is preserved.
Doctor process isolation already landed in #157228 and is not duplicated here. This PR does not claim to fix every cause of Gateway stalls or alter CLI triage.
Evidence
09226530d7; the published8f31b9d130has the identical patch and unchanged UI/fixture inputs. The later isolated-test config change was covered by the fresh 150-test run.Before: a failed update opens the assistant and sends a prompt without a click.
After: the failure stays passive and exposes Diagnose update.
Before and after recordings, with source refs in their captions:
explicit-diagnosis-before.mp4
explicit-diagnosis-after.mp4
Test audit and retained evidence
The complete changed test files were audited:
overlays-update-triage.test.ts,update-triage.runtime.test.ts,update-run-receipts.test.ts,update-triage.e2e.test.ts, andupdates.test-support.ts. Automatic-triage receipt migration cases were removed because their production consumer was retired. Dismissal format, storage failures, the 32-entry bound, drafts, redaction, transport errors, invalidation, and report authority remain covered. Browser assertions observe UI state and request traffic instead of a fixed stability sleep.