Repository navigation
fix(browser): visibly report failed pairing and tab-sharing actions - #119526
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 5, 2026, 10:07 AM ET / 14:07 UTC. ClawSweeper reviewWhat this changesThe PR gives the browser popup durable, visible errors for failed pairing and tab-sharing actions, while making the background worker settle each request only after consent reconciliation. Merge readinessThe PR remains necessary: current main can acknowledge tab sharing before consent reconciliation and can leave rejected background actions unanswered. The updated head repairs those paths with sufficient real Chromium proof; the protected Priority: P2 Review scores
Verification
How this fits togetherThe browser extension popup requests pairing and tab-sharing actions from its MV3 background service worker. That worker changes Chrome tab grouping, reconciles Copilot consent/session state, and returns the result the popup renders to the operator. flowchart LR
Operator[Browser operator] --> Popup[Extension popup]
Popup --> Worker[Background service worker]
Worker --> Tabs[Chrome tab groups]
Worker --> Consent[Copilot consent reconciliation]
Consent --> Result[Settled action result]
Result --> Popup
Decision needed
Why: The patch is technically ready, but the protected Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +33, Tests +641. Total +674 across 5 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Land the reviewed head after maintainer confirmation, retaining the background worker as the single settlement owner and the popup as the durable visible-error owner. Do we have a high-confidence way to reproduce the issue? Yes—current main visibly sends sharing success before its consent await, while the PR’s installed-Chromium path exercises the resulting missing-tab failure and popup refresh lifecycle. Is this the best way to solve the issue? Yes—the background owns exactly-once settlement and consent completion, while the popup owns persistent operator-visible action errors; the distinct side-panel Port flow has its own state and error channel. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 03a9e022ed83. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
* origin/main: (130 commits) refactor(qa): consolidate scenario runtime helpers (openclaw#119623) fix(telegram): bind Mini App auth to dashboard launches refactor(agent-core): unify session projection and compaction summaries (openclaw#119639) fix(codex): allow natural reactions in the current conversation (openclaw#119649) refactor(providers): deduplicate bundled model catalogs (openclaw#119627) fix(ui): observe the active service worker after asset refresh (openclaw#119622) fix(agents): strip echoed base64 image payloads so photo-heavy turns no longer hit the per-turn output cap (openclaw#119488) improve: make state-heavy test suites faster (openclaw#119617) perf(agents): add concurrency benchmark (openclaw#119569) fix(browser): visibly report failed pairing and tab-sharing actions (openclaw#119526) refactor(lobster): consolidate embedded workflow execution (openclaw#119630) fix(plugin-sdk): stabilize tuple-derived API baseline ordering (openclaw#119635) docs(skills): make full-authority maintainer runs unattended (openclaw#119629) fix(managed-child): honor process groups that vanish before cleanup (openclaw#119614) fix(ci): stop label-driven automation churn (openclaw#119610) fix(media): keep the ttl sweep out of the managed outgoing tree (openclaw#119127) fix(claws): remove owner-qualified skills (openclaw#119606) fix(clawrouter): show stable error for malformed usage responses (openclaw#119580) fix(gateway): claim malformed plugin icon routes (openclaw#119559) fix(telegram): preserve truthful empty-content delivery (openclaw#88810) ...
…penclaw#119526) * fix(browser): surface extension action errors exactly once * fix(browser): reuse typed extension error response handler * fix(browser): settle tab sharing only after consent reconciliation * fix(browser): retain popup action errors across status refreshes * fix(browser): preserve popup failures across state transitions
What Problem This Solves
Fixes browser actions that silently fail or falsely report success: rejected Pair/Unpair/Share operations could leave the popup without a visible outcome, and tab sharing/unsharing acknowledged success before its required consent reconciliation completed.
Why This Change Was Made
Give the browser background listener one settlement owner, report each asynchronous action failure exactly once, await consent reconciliation before acknowledging tab sharing, and display rejected unpair/share responses in the popup section that remains visible while paired. Existing pairing errors, successful actions, single-response behavior, and Chrome's callback listener contract (return true) remain unchanged.
User Impact
A browser operator now sees actionable failures when pairing, unpairing, sharing, unsharing, or consent reconciliation fails. Successful tab sharing is acknowledged only after its existing consent owner has completed; no credentials, consent policies, plugin contracts, or product configuration changed.
Evidence
Real installed Chromium browser-plugin proof
Verified the complete current browser owner change on trusted Blacksmith Testbox run 31010603420.
The end-to-end test starts real Playwright-managed Chromium, loads the actual unpacked MV3 browser plugin and its real service worker, connects to an isolated local relay, opens the actual extension toolbar popup through Chrome DevTools Protocol, and clicks its real Share button with a genuinely missing Chrome tab. Real Chrome returns its missing-tab error. The test observes both the immediate action reconciliation and a later completed periodic status refresh, and proves the exact error remains visible. This is source-backed real-browser interaction; the separate full production build also copied the browser plugin into packaged assets.
Observed remote output:
Exact reviewed failure-path coverage now includes failed pair/unpair/share/unshare, partially persisted pairing, partially applied tab-sharing changes, consent-reconciliation failures, failed getStatus polls, both actual popup refreshes, successful retry/re-pair clearing stale failures, and single-settlement async background callbacks. Existing settings and connected panes stay truthful. No authentication, provider, public configuration, protocol, or persistence contract changed.
The previous ClawSweeper P2 and both rank-up moves are addressed by the canonical popup-owned action error lifecycle, timer-advanced real-DOM regressions, and the real installed-Chromium interaction above.