Repository navigation
feat(browser): set up the Chrome extension from this Mac - #139466
Conversation
Request the official Store extension through supported macOS registration after native bootstrap is ready. Preserve Chrome approval and uninstall decisions, keep development-only setup and owned cleanup, and expose a local Mac dashboard action with accurate pending status.
|
🦞👀 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: blocked before merge. Reviewed September 5, 2026, 7:31 PM ET / 23:31 UTC. ClawSweeper reviewWhat this changesAdds local Chrome extension setup to Mac settings, macOS Store installation requests and owned cleanup to the CLI, and separate reporting for download and approval status. Merge readiness⛔ Blocked before merge - 1 item remains This remains a useful implementation with no actionable defect found. The supplied compatibility explanation, lifecycle coverage, and Chrome observations resolve the previous upgrade-proof blocker. Priority: P2 Review scores
Verification
How this fits togetherThe Mac dashboard sends device-local actions through its native bridge to the local OpenClaw CLI. The browser plugin prepares Chrome’s native host and installation request, while Chrome controls download, approval, and extension removal. flowchart TD
A[Mac browser settings] --> B[Authorized native bridge]
B --> C[Local browser installer]
D[CLI setup command] --> C
C --> E[Native host and Store request]
E --> F[Chrome download and approval]
F --> G[Installation status]
G --> A
Before merge
Agent review detailsSecurityNone. PR surfaceSource +347, Tests +286, Docs +70, Other +135. Total +838 across 26 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep one local installer shared by the CLI and Mac dashboard, with Chrome retaining approval and removal control and status distinguishing installation from connection. Do we have a high-confidence way to reproduce the issue? Not applicable as a feature proposal; current main confirms the missing local setup action and Store-request path, and the supplied evidence describes the new installer’s observed behavior. Is this the best way to solve the issue? Yes. Reusing the local installer and Chrome’s supported registration contract avoids a competing installation mechanism while preserving browser consent and existing settings. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 1c1b334fccc6. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
Use a descriptive ownership key accepted by the lint policy and include uninstall-store in the existing CLI import-boundary contract.
|
Added the stored-data compatibility proof to the PR description. The new file implements Chrome's documented external-extension registration contract; no OpenClaw database schema or persisted native snapshot changes. Lifecycle tests prove unchanged Chrome preference bytes, preservation of foreign registrations, idempotent setup, development-only behavior, and separate owned cleanup. Actual isolated Chrome proof covers two profiles and removal on restart. There is no prior shipped OpenClaw Store-request format requiring migration. |
|
Merged via squash.
|
…9466) * feat(browser): set up the Chrome extension from this Mac Request the official Store extension through supported macOS registration after native bootstrap is ready. Preserve Chrome approval and uninstall decisions, keep development-only setup and owned cleanup, and expose a local Mac dashboard action with accurate pending status. * fix(browser): align Store setup metadata and CLI checks Use a descriptive ownership key accepted by the lint policy and include uninstall-store in the existing CLI import-boundary contract.
Closes #139448
What Problem This Solves
Chrome extension setup requires separate native-host preparation and a manual trip to the Store, and the Mac app has no local setup action. A downloaded but disabled extension can also be mistaken for a ready installation.
Why This Change Was Made
The installer now registers the native host before creating Chrome's supported per-user external Store request on macOS. Chrome downloads the official extension and retains control of approval, enablement, updates, and uninstall decisions. The Mac dashboard's This Mac → Browser setup action always runs the local CLI, even with a remote Gateway.
Store requests and recorded enablement are reported separately.
--no-storepreserves development-only setup, anduninstall-storeremoves only OpenClaw-owned request metadata without changing native hosts. Linux and Windows retain their documented Store/manual paths. Setup instructions and Doctor guidance match these boundaries.User Impact
Mac users can start Chrome extension setup from one dashboard action or CLI command, then approve it in Chrome. Running Chrome may need a restart before it sees the request; OpenClaw does not restart it or bypass approval. Status directs users to check the extension's connected state rather than treating installation as connection proof.
Evidence
Chrome installation: before / awaiting approval
These are actual isolated Chrome screenshots with no signed-in account or personal data.
Mac settings: before / setup requested
These render the actual dashboard page with a synthetic native bridge. The click forwarded exactly one setup request; these UI captures do not claim native execution or a connected extension.
Upgrade and stored-data compatibility
The new JSON file is Chrome's documented external-extension registration contract. This change adds no SQLite schema, migration, persisted native-device snapshot field, or new OpenClaw runtime store. The ownership marker is new, unpublished metadata; existing Store installations, browser preferences, native-host registrations, and development copies retain their owners and existing repair paths.
The installer lifecycle tests verify repeated setup is idempotent, Chrome preference bytes remain unchanged, foreign/malformed/symlink registrations are preserved,
--no-storeleaves the request absent, and native-host removal does not remove the Store request. Explicituninstall-storeremoves only our exact owned metadata. Actual Chrome proof covered a fresh profile, a second profile, pending approval, and cleanup followed by browser restart. These are additive installation and removal paths; there is no prior shipped OpenClaw Store-request format to migrate.