Skip to content

Make browser CDP outages diagnosable and provide consent-preserving recovery #203

Open

Description

@SSFSKIM

Problem & intent

Head-to-head reports: the owner-supplied cua_repl browser field report dated 2026-10-20, Frictions §§1–2 and Failure chain; the owner-supplied Playwright extension-bridge field report dated 2026-10-20, Attachment §§2–3. Both describe outages while automation clients shared Chrome; cua could still list tabs but CDP stalled and the run ended. The Playwright bridge also dropped, but explicit reattach recovered control (with a new relay/tab, not transparent recovery). Verdict: outage and contention cause plausible, not live reproduced; missing health/cancellation diagnostics confirmed in code.

src/chrome/host.mjs times out/detaches CDP; cdp.mjs:executeTargetCdp retries only classified unattached conditions, not an arbitrary stalled command. Host cancellation is per owned tab (canceledByUser, lines 172,427,637), not a stored permanent browser-wide ban. A new owned tab starts false. Therefore the reported cross-tab/post-reconnect persistence needs a trace; do not encode it as proven. Extension attach code explicitly allows other debugger clients alongside, so process-wide exclusivity is also unproved.

Constraints

Never treat clicking the debugging Cancel bar as consent to resume, silently clear user revocation, restart Chrome, reload the owner’s extensions, or replay a possibly dispatched mutation. Recovery must preserve user tabs and identify the controlled target. Native #187 clipboard waits, browser #144 timer skew, closed #25 vendor timeout cap and closed #81 foreign-extension iframe are distinct mechanisms.

Success criteria

  • Distinguish tab discovery health, extension transport, debugger attachment, cancellation and a pending/timed-out CDP operation; report stage and safe next step.
  • Reproduce with isolated fixtures and two controllers: same tab, different tabs, and separate profiles; measure the actual contention boundary rather than assume exclusivity.
  • Test timeout during attach/setup/action, detach loss, genuine Cancel, new-tab control and end_task/new connection.
  • Provide bounded explicit recovery for faults and a clearly user-authorized resume path for revocation; never auto-retry an uncertain mutation.
  • Correct guidance that opening a tab always repairs a wedge; no advice to press Cancel to reset automation.

Open questions

What Chrome/extension event or pending operation caused the whole-profile symptom? What user-facing resume control best expresses new consent? Design these before implementation.

Decision log

2026-10-23: New outage/recovery scope after all-state CDP timeout/debugger/canceledByUser searches and reading #25/#81/#123/#144/#170/#187. Private account, profile, extension-instance and site identifiers intentionally omitted; only generic third-party sandboxed-iframe behavior retained. Category: bug; birth state: ready-for-architect; parent N/A (dogfood follow-up, not a decomposition child); blocked-by N/A (can be investigated independently).

Sminos-Session: cua_repl#1ea561bc (MAWS on macbook)

Activity

  1. added
    bug
    status:ready-for-architect
    priority:P1
    on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority:P1status:ready-for-architect

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions