Repository navigation
fix: restore doctor install-switch release proof - #116190
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 29, 2026, 10:52 PM ET / July 30, 2026, 02:52 UTC. ClawSweeper reviewWhat this changesThe branch clears inherited OpenClaw state and config path variables before the Docker doctor install-switch flow installs the daemon and runs doctor repair, with a focused source-text regression assertion. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 3 items remain Keep this PR open for maintainer handling: it carries the protected Priority: P3 Review scores
Verification
How this fits togetherThe doctor install-switch release scenario creates an isolated test home, runs daemon installation and doctor repair commands, and verifies the supported service lifecycle. The state-path environment determines whether those commands use OpenClaw's default layout or trigger its non-default-path safety boundary. flowchart LR
A[Docker release scenario] --> B[Isolated test home]
B --> C[State-path environment]
C --> D[Daemon installation]
D --> E[Default-layout safety decision]
E --> F[Doctor repair]
F --> G[Release proof result]
Decision needed
Why: The protected maintainer label and uninspectable current-main safety-boundary implementation make this an owner-intent decision rather than an automated merge or repair decision. Before merge
Agent review detailsSecurityNone. PR surfaceTests +5, Other +1. Total +6 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Preserve the focused default-layout setup only if a maintainer confirms that the product safety guard is exercised elsewhere, then attach redacted after-fix Docker scenario output proving daemon installation and doctor repair complete in the isolated home. Do we have a high-confidence way to reproduce the issue? Not applicable for a user-facing bug: this PR repairs release-scenario coverage. The reported harness failure is plausible from the supplied PR body, but the sandbox prevented independent source and Docker-scenario inspection. Is this the best way to solve the issue? Unclear: the environment reset is a narrow plausible repair, but confirmation requires comparison with the daemon-install safety guard and sibling scenarios that retain custom-state coverage. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against 859280ee1199. LabelsLabel changes:
Label 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
|
|
Release-owner decision: land this harness correction now; the immediately following beta.6 release validation will provide the after-fix Docker scenario proof. The optional Rank-up moves are addressed as follows:
Exact-head CI run 30509451949 is green, including |
|
Merged via squash.
|
* origin/main: style: format dynamic route coverage (openclaw#116197) docs: clarify dynamic deep link loading test: cover dynamic route startup reconnect refactor: keep dynamic route identity page-owned docs: note dynamic deep link loading fix: load dynamic deep links once fix(e2e): use default state for daemon switch (openclaw#116190) docs: clarify Buzz typing cadence (openclaw#116194) docs: document Buzz typing indicators feat: add Buzz typing indicators
What Problem This Solves
Fixes an issue where the doctor install-switch Docker scenario asked OpenClaw to install a daemon service while inherited non-default state and config paths were active. The release candidate correctly rejected that unsafe service-install request, so the harness could not reach the install/doctor switch behavior it owns.
Why This Change Was Made
Each install-switch flow still creates and retains an isolated temporary
HOME, then clearsOPENCLAW_HOME,OPENCLAW_STATE_DIR, andOPENCLAW_CONFIG_PATHbefore invoking daemon and doctor commands. Those commands therefore use the default$HOME/.openclawlayout while remaining fully contained in the test home. Other scenario flows keep their intentional custom-state overrides.User Impact
The release doctor install-switch lane now tests the supported default-state service lifecycle instead of being stopped by the product's non-default-path safety guard. There is no product runtime change.
Evidence
bash -n scripts/e2e/lib/doctor-install-switch/scenario.shtest/scripts/docker-build-helper.test.ts: 175 passedgit diff --check