Skip to content

MAWS in-app browser: the first-use path fails (docs name iab and visible:true; profile keys refused as ids; selected browser not named MAWS) #493

Closed

Description

@SSFSKIM

What happens

In a MAWS session, cua's own docs send agents to browsers and options the MAWS in-app browser does not have. On 2026-11-22, two MAWS sessions failed at their first browser call within 15 minutes of each other:

  1. The visible option errors. college-79 ran cua.createBrowserTab(browser.browserId, url, { visible: true }), where browser = await cua.getBrowser() was the MAWS browser. The call threw Capability is not available: visibility. The same call without the options object worked: the SSO redirect was followed, and the AX snapshot, getScreenshot and markHandoff all worked. The first-use instructions say: "iab" (in-app browser): in createBrowserTab, use visible: true to show the browser (src/repl-host/instructions.mjs:24, instructions/{macos,linux}/browser.md:43). That line is the vendor's text for Codex's built-in browser, which does not exist under Claude Code. The MAWS backend is type extension and offers no visibility capability (src/cua-api/browser-client.mjs Capabilities.get).
  2. The iab and maws ids fail. college-2d called cua.createBrowserTab("iab", …) and got Browser is not available: iab. It then called cua.createBrowserTab("maws", …) and got Browser is not available: maws. Its profiles_list had shown {key: "maws", ready: true, extensionInstanceId: "maws:6797…"}, and the agent passed the key where an id belongs. The agent gave up on the in-app browser and went on to consider headed Playwright on the owner's screen and the owner's personal Chrome profile.
  3. The selected browser is not named as MAWS. getBrowser() with no id prints "Selected Browser — Name: cua, Type: extension, ID: 1". Nothing in it says this is the session's MAWS Browser panel. Only listBrowsers() shows profileName: "MAWS".

Reports: ~/Developer/GitHub/MAWS/plugin/cua/dogfood-feedback/2026-11-22-college-iab-smoke-test.md and the college-2d transcript (5d84869b, 07:38Z).

Wanted

The documented first path works on the first try in a MAWS session, and in a Chrome-profile session.

  • The served instructions name only the browsers cua serves. Drop the iab line, or keep it only where an iab backend is listed. Say that cua.getBrowser() with no id is the MAWS in-app browser when one is configured, and that its tabs show in the session's Browser panel.
  • visible on a backend without the visibility capability is accepted and ignored, and the tab result says it was ignored. Do not throw. Decided here: MAWS does not get a visibility capability that raises its Browser panel, because the agent must not move or raise the person's windows.
  • createBrowserTab and getBrowser accept a profiles_list key (maws, personal, …) as well as an id. A miss names the available ids and keys.
  • The Selected Browser block names a MAWS backend as "MAWS in-app browser (maws)".

Proof

A MAWS session follows the first-use doc literally: getBrowser(), then createBrowserTab(id, url, {visible: true}), then createBrowserTab("maws", url). Every step succeeds. The same steps with a Chrome profile key also succeed. scripts/accept/maws-features.mjs and maws-selection.mjs gain these cases.

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P2
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 23, 2026
  2. added
    status:in-review
    and removed
    status:in-progress
    on Nov 23, 2026
  3. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: Draft PR at 527b8e1; merges after the live MAWS run passes (ruling 1104)

  4. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [review-trail] reviewer-medium (afca9d40) on b1b1548..c2f4fc2: incorrect, 2 P1 (built-in selector / legacy maws key reaching the owner's Chrome) + 2 P2 + P3; fixed in db143e1 with the 1112 invariant test. Re-review db143e1: 3 P2 (late-bound socket, lazy-launch stamping, parity oracle), fixed 70c8982. Focused re-review 70c8982: 1 P2 (unguarded hint lookup aborting held drain), fixed 527b8e1. Live MAWS run pending.

  5. removed
    status:in-review
    on Nov 23, 2026
  6. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed via PR #498 (cua 0.29.3)

  7. added 2 commits that reference this issue on Nov 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:P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions