Repository navigation
fix(browser): Windows Chrome setup fails after saved-profile Store enrollment - #160161
roboclaw-bot wants to merge 1 commit into
Conversation
…rollment Treat profile-relative Store conflicts as read-only discovery evidence, while retaining strict selected-profile admission and same-generation confirmation. Co-authored-by: steipete <[email protected]> Co-authored-by: fuller-stack-dev <[email protected]>
|
🦞👀 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 changes before merge. Reviewed September 28, 2026, 1:45 AM ET / 05:45 UTC. ClawSweeper reviewWhat this changesThe Browser plugin lets selector-free Windows Chrome setup inspect saved profiles after a wrong-profile Store conflict, with CLI regression cases and updated setup guidance. Merge readiness⛔ Needs changes before merge - 1 item remains Keep open. Current main and the latest release still have the reported Windows setup defect; the earlier merged setup PR did not address this saved-profile Store case, and no replacement PR owns it. Priority: P2 Review scores
Verification
How this fits togetherThe Browser plugin receives profile configuration and registration observations from the Windows bootstrap executable. Its setup controller selects a local Chrome profile before checking the relay or requesting native installation. flowchart LR
A[CLI or desktop setup] --> B[Browser profile configuration]
A --> C[Windows helper inspection]
B --> D[Profile selection]
C --> D
D --> E[Same profile confirmation]
E --> F[Relay verification]
E --> G[Guarded native install]
D --> H[Blocked result]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +8, Tests +59, Docs +3. Total +70 across 3 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep selection in the Browser setup controller and require a matching native descriptor and same-generation confirmation, backed by an exact-head Windows run for saved-profile recovery and foreign-Store refusal. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current main rejects a wrong-profile foreign Store observation, and the Windows helper source supports that response. A native Windows reproduction was not captured in this review. Is this the best way to solve the issue? Yes, the proposed change is narrow: it permits further read-only discovery while retaining selected-profile validation and confirmation. Native Windows acceptance is still needed for the platform claim. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1ca6a5d0a801. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
This pull request has been automatically marked as stale due to inactivity. |
Related: #152057 (already merged; this is a narrow follow-up).
What Problem This Solves
Fixes: automatic Windows Chrome setup refuses a saved extension profile after that profile explicitly requested Chrome Web Store installation.
User Impact
User impact: selector-free inspect, verify, and install can recover the existing local profile without replacing its Store request. No new flags, configuration, permissions, or protocol changes. Chrome still owns extension approval.
Why This Change Was Made
The Windows owner includes the browser profile in Store ownership. Inspecting the default
chromecontext can therefore report a context conflict and a foreign Store even when the savedworkprofile owns both. That observation now permits only bounded, serial read-only discovery. Selection still requires a validated current descriptor and a missing or owned Store request, followed by same-generation confirmation before relay access or the single C#-guarded mutation. Truly foreign, unknown, busy, and changed observations remain fail-closed.Evidence
6bfe76fcd7d31f64629c6889ce34e54368221d51: all three new Store-requested cases failed while the other 25 cases passed. After the repair, all 35 Windows-selection cases pass, including foreign-Store refusal at candidate and confirmation stages before install/verify.6cff547216bd3229446d7cc32a7dae667182ef51; hosted exact-head CI remains required.pnpm test extensions/browser/src/cli/browser-cli-extension.windows-setup.test.ts --maxWorkers=1: 7.20s runner wall, 5.99s Vitest wall, less than 1s test execution (35 cases). CI seconds will be added once available.openclaw/openclaw-windows-node@92afaa430ee2bb5fb16e455ee8c9e41f246565f1(ManagementContract,WindowsRegistrationPlatform, andRegistrationService). These local tests inject OS/C# boundary facts; they are not native Windows acceptance. The existing Windows lane owns exact-consumer native proof. No Windows producer or proof-script changes are included.Worked on by: @steipete and @fuller-stack-dev
Work sessions
View the OpenClaw team session