Skip to content

Clear errors for two expected refusals: Chrome Web Store pages (extensions are barred) and native calls on a locked screen #170

Open

Description

@SSFSKIM

Problem & intent

Driving #78 on 2026-10-18 hit two failures that were correct, but whose messages didn't say why:

  1. Chrome Web Store pages. Chrome refuses every extension's debugger on its Web Store (chrome.google.com/webstore, chromewebstore.google.com), on purpose.
    • cua's browser route surfaced this as a ~90 s hang ending in "CDP operation exceeded its deadline before command dispatch" (a tab created at about:blank, then navigated).
    • Once the tab was opened straight at the store URL, the message was {"code":-32000,"message":"Not allowed"}.
    • The same tab could open example.com and was then refused the store URL, so the route itself is healthy.
  2. A locked screen. Local native calls failed with Computer Use server error -10005: cgWindowNotFound while the Mac's screen was locked (CGSSessionScreenIsLocked). The remote-device agent already refuses with console_locked and says why; local sessions don't check.

The intent: each failure names its cause and what to do instead.

What to do

  1. In the browser service, refuse a navigation or tab creation to a Web Store URL immediately, before any attach or navigate. Use a sentence such as "Chrome does not let extensions operate Chrome Web Store pages; use the native computer surface or do this step by hand". Map CDP -32000 "Not allowed" on navigation to the same sentence.
  2. On a local macOS session, check the console's lock state before a native call (as the remote agent's console check does), and refuse with a classified error that says the screen is locked.

Success criteria

Both cases fail at once, with a message that names the cause, pinned by tests (a stub extension that refuses the store URL; a stubbed lock state).

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P3
    on Oct 18, 2026
  2. SSFSKIM commented on Oct 23, 2026

    @SSFSKIM
    OwnerAuthor

    Native lock feedback update: /Users/new/Developer/GitHub/MAWS/plugin/cua/dogfood-feedback/l6-artifacts.md §10 reports -10020 explicitly saying the Mac is locked and asking for manual unlock. Confirmed at d95261f: Methods.swift calls refuseWhenLocked before native request dispatch, and emits that classified message. The own-engine branch therefore already has the early native lock refusal requested here; do not file another preflight bug or promise a first-call check prevents a later lock. This does not close the issue’s separate Web Store/vendor-route scope. Scheduling a GUI slot before a lock check is workflow friction, not a reason to bypass the lock. No GUI or lock probing performed.

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

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:P3status:ready-for-implementer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions