Repository navigation
fix: setup diagnostics can repair state without approval - #171960
Merged
Merged
Conversation
Run hosted Doctor through the existing read-only lint owner while retaining subprocess isolation and cleanup settlement. Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 21c0e433-c511-4f49-9a96-5a05b809a9bb
roboclaw-bot
marked this pull request as ready for review
October 14, 2026 08:22
Contributor
|
ClawSweeper reviews are opt-in for maintainers. If a review is required, finish the work and validation first, then comment |
roboclaw-bot
enabled auto-merge (squash)
October 14, 2026 08:29
Collaborator
Author
|
Merged via squash auto-merge.
|
vincentkoc
added a commit
that referenced
this pull request
Oct 14, 2026
…/plugin-memory-addon-presentation-20261014 * commit 'a8da8c92e3dbb21dd1441a30eb842fcd942e82b6': (52 commits) test(ui): await terminal reconnect fixture readiness (#171945) perf(gateway): retain only the requested ordered session page (#171968) test(gateway): cover automation run-alias placement lifecycle (#139313) fix(ci): retry FRV job listings with smaller pages after GitHub 5xx (#171952) fix(process): prevent false cleanup failures after CLI stdin closes (#171969) test(doctor): cover released updater advisory warnings (#157086) fix(ci): skip Testbox builds for known prose files (#171946) perf(sessions): remove redundant snapshot walks (#171964) fix(ci): skip plugin scaffold build for SDK instructions (#171944) fix(infra): preserve scheduler scope abort state after retirement fix: setup diagnostics can repair state without approval (#171960) perf(usage): avoid per-session admission churn during inventory (#171868) fix(ci): exclude documentation from extension lint scope (#171909) test(gateway): keep runtime-only compat flags out of live gateway config (#171953) docs: document ClawHub install telemetry opt-out (#114376) fix: recover completed chat replies after missed publication (#171766) refactor(ui): decouple session controller types from Lit (#171559) fix(gateway): settle worker reconciliation during busy shutdowns (#171843) fix(ci): ignore protocol prose in bundled check selection (#171908) fix(ui): align replacement lines and highlight inline diff edits (#171935) ...
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 15, 2026
…1960) * fix: setup diagnostics can repair state without approval Run hosted Doctor through the existing read-only lint owner while retaining subprocess isolation and cleanup settlement. Co-authored-by: vincentkoc <[email protected]> * fix: setup diagnostics can repair state without approval Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 21c0e433-c511-4f49-9a96-5a05b809a9bb --------- Co-authored-by: vincentkoc <[email protected]>
RomneyDa
pushed a commit
that referenced
this pull request
Oct 16, 2026
* fix: setup diagnostics can repair state without approval Run hosted Doctor through the existing read-only lint owner while retaining subprocess isolation and cleanup settlement. Co-authored-by: vincentkoc <[email protected]> * fix: setup diagnostics can repair state without approval Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 21c0e433-c511-4f49-9a96-5a05b809a9bb --------- Co-authored-by: vincentkoc <[email protected]> (cherry picked from commit 0512f3c)
wheakerd
pushed a commit
to wheakerd/clawdbot
that referenced
this pull request
Oct 22, 2026
…1960) * fix: setup diagnostics can repair state without approval Run hosted Doctor through the existing read-only lint owner while retaining subprocess isolation and cleanup settlement. Co-authored-by: vincentkoc <[email protected]> * fix: setup diagnostics can repair state without approval Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 21c0e433-c511-4f49-9a96-5a05b809a9bb --------- Co-authored-by: vincentkoc <[email protected]> (cherry picked from commit 0512f3c) (cherry picked from commit 6618b39) Co-authored-by: RomneyDa <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Fixes: requesting a setup diagnostic can repair or migrate local state without repair approval.
User Impact
The setup assistant's
doctoraction reports health findings without changing operator config or state. Findings retain lint's nonzero health status. Repairs still require the separateopenclaw doctor --fixflow; no migration or operator action is required for this fix.Why This Change Was Made
Non-interactive Doctor suppresses prompts, not writes. The hosted diagnostic worker now calls the existing read-only lint owner instead of the ordinary repair-capable Doctor flow. It keeps the existing subprocess boundary and cancellation/resource-settlement behavior. Truncated reports direct operators to the read-only command too.
Ordinary CLI Doctor, explicit repairs, and update-time Doctor are unchanged; the hosted diagnostic worker has only the setup-operation caller.
Evidence
state/openclaw.sqliteduring diagnosis. No live Doctor run, Gateway restart, or operator-state repair was performed.gateway.mode is unsetfinding, and compares the isolated tree's paths, file hashes, and file modification times.pnpm test src/system-agent/operations.doctor.process.test.ts --maxWorkers=1: 2 passed; 47.06 s wall time including cold compiled-worker preparation; 7.013 s local test execution (single worker). The seconds-long regression protects real process/readonly-state composition, not a mocked dispatch decision. CI: 28.50 s file invocation (16.858 s test callbacks).pnpm test src/system-agent/operations.doctor.test.ts --maxWorkers=1: 3 passed; 44.09 s wall including worker preparation; 0.032 s local test execution. This retains cancellation/output-failure settlement, bounded UTF-8 output, and safe follow-up guidance. CI: 10.66 s file invocation (0.069 s test callbacks).doctor-lint.sqlite-preservation.test.ts: all 3 cases passed, covering older SQLite schemas and WAL artifacts; combined sibling command took 59.27 s wall.git diff --checkpassed.checks-node-changed-2.pnpm buildwas intentionally stopped during unrelated package declarations; full build and broad-suite proof are left to PR CI, not claimed complete locally.Worked on by
Work sessions
View the OpenClaw team session