Repository navigation
fix(browser): make extension deep doctor probe page snapshots - #118361
clawsweeper[bot] wants to merge 1 commit into
Conversation
|
Codex review: needs changes before merge. What this changesThis PR adds extension-backed page snapshots to deep browser diagnostics and identifies the tab and CDP method in relay timeout errors. Example: Tab 7 stops answering Accessibility.getFullAXTree while the extension relay remains connected.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Partial Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Needs changes before merge - 2 items remain Keep open: this PR addresses a diagnostic gap still present on main, but its successful probe overwrites active action references. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherBrowser doctor selects a profile and tab, probes page accessibility through direct CDP or Playwright and the extension relay, and returns a health report. flowchart TD
A[Deep doctor request] --> B[Profile and tab selection]
B --> C[Direct CDP capture]
B --> D[Playwright capture]
D --> E[Extension relay and Chrome]
C --> F[Doctor report]
E --> F
D --> G[Action reference cache]
Technical reviewBest possible solution: Use capture-only diagnostics that preserve action references and main’s cancellation safeguards while returning target-specific failures within the caller’s budget. Do we have a high-confidence way to reproduce the issue? Source establishes the failure sequence: obtain an agent snapshot containing e1, call /doctor?deep=true on the same extension tab, then act using e1; the probe replaces the reference map and refLocator throws Unknown ref. Is this the best way to solve the issue? This is the right diagnostic owner but not the best implementation: reuse accessibility capture without its reference-publication side effects; retries or broader readiness checks would not repair that boundary. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ff908fed3f95. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +14, Tests +96. Total +110 across 4 files. Added test files: 0. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (13 earlier review cycles; latest 8 shown)
Reviewed October 17, 2026, 12:24 PM ET / 16:24 UTC (Revision 14). |
|
🦞✅ Source: Why human review is needed: What the maintainer can do as a next step: I added |
|
This pull request has been automatically marked as stale due to inactivity. |
|
Closing due to inactivity. |
Fixes #116747.
What this changes
browser doctor --deepexercise extension profiles through the existingsnapshotAriaViaPlaywrightflow when no per-tab CDP WebSocket is available.Why
Transport readiness and tab enumeration can succeed while a page-level extension relay command stalls. The deep diagnostic must probe that page-command path and return a failure summary that operators can act on.
Scope
This is a browser-plugin-only repair. It adds no configuration, retries, fallback connection path, ordinary doctor readiness change, or changelog edit.
Thanks to @RothElektronik for the reported reproduction in #116747. #113921 remains historical context for a separate established-connection enumeration fix; #113955 remains a distinct cold-connect issue.