Repository navigation
fix(gateway): let wizard clients control daemon installation - #109412
TheAngryPit wants to merge 1 commit into
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 16, 2026, 7:56 PM ET / 23:56 UTC. Summary PR surface: Source +4, Tests +61. Total +65 across 3 files. Reproducibility: yes. from source: the closed Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the additive RPC projection after a redacted paired Windows Companion run proves that explicit false avoids daemon installation, omission preserves existing behavior, and the gateway-hosted wizard neither launches local UI nor exposes token-bearing output. Do we have a high-confidence way to reproduce the issue? Yes from source: the closed Is this the best way to solve the issue? Yes. Extending the existing RPC schema and forwarding the value into the established onboarding option is narrower and more maintainable than adding client-specific lifecycle logic. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against 4a7abe1556e3. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +4, Tests +61. Total +65 across 3 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
Superseded by #110382. The consolidated PR now includes the non-exiting RPC wizard runtime, the optional installDaemon protocol field and forwarding contract, explicit RPC safety flags, and the combined test matrix. It is linked to canonical issue #110545 and has passed focused current-main Crabbox proof plus scoped Auto-review. Closing this overlapping PR keeps one issue and one implementation lane for the Gateway owner boundary. |
What Problem This Solves
Remote wizard clients can already express whether onboarding should install a daemon through
OnboardOptions.installDaemon, but the Gateway RPC contract rejected that field andwizard.startdid not forward it.This blocks clients that own the service lifecycle themselves, including the Windows Companion setup flow. Passing
installDaemon=falsemust prevent the Gateway-hosted wizard from installing a competing daemon inside the managed environment.Related Windows Companion work:
Why This Change Was Made
This keeps ownership at the existing native boundary:
WizardStartParamsSchema;false,true, and omission;skipUi=true;suppressGatewayTokenOutput=true.No new lifecycle mechanism or client-specific branch is introduced.
User Impact
Wizard RPC clients can now explicitly opt out of daemon installation while retaining the existing default when the field is omitted.
This lets a Companion-managed installation own service creation without changing CLI onboarding behavior.
Evidence
wizard.startregression: 6/6 executions passed across the configured Vitest projects.installDaemon=false,true, and omitted.skipUi=trueandsuppressGatewayTokenOutput=true.tsgo,oxfmt --check, andoxlintpassed.git diff --checkpassed.patch is correct, confidence 0.96.Failed-first evidence was retained during development: a broad Gateway WebSocket test exceeded its inherited 90-second limit, so the PR uses a dedicated handler-level regression rather than claiming that timeout as proof. The first focused typecheck also caught a potentially absent indexed handler; the test now asserts registration before invocation.
Scope
This PR changes only the Gateway wizard protocol projection and its focused regression test. It does not modify Windows Companion code, service defaults, packaging, migrations, or unrelated beta fixes.
The PR remains draft until the paired Windows Companion flow is validated against an official OpenClaw artifact containing this change.