Skip to content

fix(browser): Windows Chrome setup fails after saved-profile Store enrollment - #160161

Open
roboclaw-bot wants to merge 1 commit into
mainfrom
openclaw/chrome-store-profile-recovery-20260928
Open

roboclaw-bot wants to merge 1 commit into
mainfrom
openclaw/chrome-store-profile-recovery-20260928

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

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 chrome context can therefore report a context conflict and a foreign Store even when the saved work profile 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

  • Reproduced through the registered setup CLI on base 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.
  • 76 sibling tests pass: POSIX saved-profile migration, canonical CLI/setup, real authenticated relay, Windows adapter, and management transport. Total focused coverage: 111 passing tests.
  • Independent P0–P2 autoreview: scoped-clean. Full changed-scope checks passed, including extension production/test typechecks, typed lint, dead-export/import-cycle checks, formatting and owner-boundary guards (plus six Doctor contract tests). Frozen reviewed head: 6cff547216bd3229446d7cc32a7dae667182ef51; hosted exact-head CI remains required.
  • Test cost: 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.
  • Dependency behavior personally checked against openclaw/openclaw-windows-node@92afaa430ee2bb5fb16e455ee8c9e41f246565f1 (ManagementContract, WindowsRegistrationPlatform, and RegistrationService). 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

…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]>
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 28, 2026 05:33
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: browser size: S labels Sep 28, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed September 28, 2026, 1:45 AM ET / 05:45 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: 6cff547216bd3229446d7cc32a7dae667182ef51

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) PR readiness rating was derived from proof quality, review findings, security review, and reviewer confidence.
Proof confidence 🌊 off-meta tidepool Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
Evidence reviewed 9 items Introduced change: The pinned PR adds a narrow conflict classification that permits further inspection when the wrong-profile response reports a foreign Store request.
Current main still blocks recovery: The fetched main version rejects a response whose Store state is foreign before it can discover the saved profile.
Selection safeguards: The candidate must have a matching validated descriptor and an owned or missing Store observation, followed by same-profile, same-generation confirmation before further action.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

  • Complete next step (P2) - Add redacted current-head native Windows CLI evidence for saved-profile Store recovery and a foreign-Store refusal before relay access or installation. Update the PR body to trigger re-review; if it does not, ask a maintainer to comment @clawsweeper re-review.
Agent review details

Security

None.

PR surface

Source +8, Tests +59, Docs +3. Total +70 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 1 18 10 +8
Tests 1 105 46 +59
Docs 1 5 2 +3
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 128 58 +70

Review metrics

None.

Technical review

Best 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.

Labels

Label changes:

  • add P2: A saved nondefault Chrome profile blocks Windows automatic setup, but the affected configuration is limited and an explicit-profile repair path exists.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.

Label justifications:

  • P2: A saved nondefault Chrome profile blocks Windows automatic setup, but the affected configuration is limited and an explicit-profile repair path exists.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • roboclaw-bot: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Oct 13, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation extensions: browser P2 Normal backlog priority with limited blast radius. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S stale Marked as stale due to inactivity status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant