Skip to content

MAWS in-app browser: profile keys as browser ids, MAWS named, visible ignored on cua's host (#493, 0.29.3) - #498

Merged
SSFSKIM merged 18 commits into
mainfrom
fix/493-maws-first-use
Nov 23, 2026
Merged

SSFSKIM merged 18 commits into
mainfrom
fix/493-maws-first-use

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Closes #493. Version 0.29.3. Design rulings 1104, 1107, 1112, 1120, 1122.

The gap

Two MAWS sessions failed at their first browser call on 2026-11-22:

  • createBrowserTab(id, url, {visible: true}) threw Capability is not available: visibility;
  • "iab" and "maws" were refused as browser ids, although profiles_list named maws;
  • the selected browser was not named as MAWS.

Both sessions ran the vendor REPL host, which is the darwin default with the computer surface. There, the iab / visible text and the capability check in createBrowserTab are the pinned vendor runtime's code.

The fix, in cua's shared browser service and proxy (both hosts)

  • Profile keys as ids.
    • getBrowser and createBrowserTab accept a profiles_list key (maws, personal, …). A key is tried only after id, type and family.
    • Built-in type and family selectors (iab, chrome, extension, cdp, mcpapps, edge) are never keys.
    • While MAWS backends are configured, a MAWS key (maws, maws-<n>) is never a Chrome profile's.
    • maws falls back to the first MAWS instance, as the bare default does.
    • Keys are read per call: the proxy stamps them on each relayed call as request metadata cua/browserKeys, at send time (held calls included), and drops any client-sent value.
  • A miss names the ids and the keys. A key whose Chrome profile was bound after the runtime launched says a new session can reach it.
  • The Selected Browser block names a MAWS backend as "MAWS in-app browser (maws)", taking the label from the key that carries the instance.
  • cua's js rule, served ahead of the vendor text, says:
    • there is no "iab" browser;
    • leave visible out;
    • maws or another key works where an id goes;
    • the in-app browser's tabs show in the session's Browser panel.
  • On cua's own host, visible without the capability is ignored, and the result says so (core.md and the parity oracle carry the exception). MAWS gets no visibility capability (ruling 1107).

Evidence

Review.

  • reviewer-medium on c2f4fc2: 2 P1 + 2 P2 + 1 P3, all fixed in db143e1.
  • re-review: 3 P2, fixed in 70c8982.
  • focused re-review: 1 P2, fixed in 527b8e1.

Limits

Sminos-Session: cursor235#b93055dd (cua on macbook)

…e ids and keys, and the Selected Browser block names MAWS (refs #493)

The launch hands the service CUA_BROWSER_KEYS ({key: instance}: the MAWS backends' and every cua-route bound
profile's). A key is tried only when no id, backend type or family answers; maws falls back as the unqualified
default does. A miss keeps the vendor's sentence and appends the listed ids and the live keys. The first-use
documentation names a MAWS backend "MAWS in-app browser (<key>)"; listing and selection results are unchanged.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…capability, and says so (refs #493)

MAWS's in-app browser and Chrome profiles announce no visibility capability; the vendor's own in-app browser text
recommends visible: true, which threw there. With the capability it is set as before.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…iab, leave visible out (refs #493)

Sminos-Session: cursor235#b93055dd (cua on macbook)
…e key and the miss (refs #493)

maws-features.mjs gains firstUse, mawsKey, chromeKey (--chrome-key) and keyMiss, and --steps to run a subset;
maws-selection.mjs gains the same against the fake peers in a third cua serve, with the key registered only in a
home without a registry and removed after. Its explicit-chrome expectation predates the keep-window tab and is
logged in the tech-debt tracker.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…493)

Sminos-Session: cursor235#b93055dd (cua on macbook)
Sminos-Session: cursor235#b93055dd (cua on macbook)
…rome, and read at each call (refs #493)

Review of c2f4fc2: a profile keyed like a backend type or family (iab, chrome, extension) could land a selection in
the owner's Chrome; a Chrome profile registered as maws (or maws-2 before its hello) won over the MAWS backend; a key
rebound, or a MAWS backend connected, after launch kept the launch-time map; a panel selected by instance id could be
labelled with another panel's key. Now the proxy puts the current keys on each relayed call (cua/browserKeys, never
the client's), reserved MAWS keys are never Chrome's while MAWS backends are configured, the service never treats a
type or family as a key (a miss points such a profile to its extensionInstanceId), and a MAWS panel is named by the
key carrying its instance or by none. The table test pins the invariant: a selection lands in a Chrome profile only
when it names that profile, by id or by its current key.

Sminos-Session: cursor235#b93055dd (cua on macbook)
)

Sminos-Session: cursor235#b93055dd (cua on macbook)
… visible exception documented (refs #493)

Sminos-Session: cursor235#b93055dd (cua on macbook)
…left untouched (refs #493, ruling 1107)

The second tabs.create was the keep-window New Tab page (#148): the fake's window started empty, so the agent's tab
was its last. A real Chrome window always holds a tab. The tech-debt line is withdrawn.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…xception (refs #493)

The oracle's owned transform and its expected fixture take the same edit as docs/cua-api/core.md; the pinned vendor
bytes are unchanged. A test now ties the oracle's own-host core to the shipped document.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…after launch misses saying a new session can reach it (refs #493)

The server stamped at submission, before the lazy launch waited for the MAWS backends' hellos, so a first call could
lack maws-2 and the first-use document "(maws)". lazyRuntime now takes `outgoing`, applied when a message is sent and
when the launch releases a held one; the connection stamps cua/browserKeys there, and the server only drops the
client's. The browser service dials only the sockets its launch listed, and its sandbox admits no other, so refreshing
that list mid-run is not small: the connection names keys whose socket the launch lacks (cua/browserKeysUnreached,
keysBeyondLaunch) and their miss says this runtime cannot reach the browser and a new session can.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…ws leaves it out and the call is delivered (refs #493)

keysBeyondLaunch resolves the home again; if that throws while the launch drains its held calls, the exception
escaped the drain and the queued call never reached the runtime. The stamp (now browserKeysStamp) leaves the hint out
with a diagnostic and keeps the rest of the request.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…n the REPL host a MAWS session runs (refs #493)

Design ruling 1120: a second cua serve from the checkout with the installed plugin's surfaces (computer,browser; MAWS
passes only CUA_BROWSER_BACKENDS) and the default engine, which on macOS is the vendor's host; five separate js calls
(getBrowser and its Name line, {visible: true} throwing the declared #496 limit, the open without it,
createBrowserTab("maws") on the same browser, the iab miss), each host-attested from `_meta['cua/replHost']`, browser
calls only, every tab closed, then end_task.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…efs #493)

The core.md sentence and createBrowserTab's visible exception change what the own host answers at a first call, which
the identity's own rule says bumps REPL_HOST_VERSION, so no recorded handshake or evidence of the 0.5.0 host passes for
this one.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…host features both PASS (refs #493)

Sminos-Session: cursor235#b93055dd (cua on macbook)
…irectory from the #493 report (refs #493)

Sminos-Session: cursor235#b93055dd (cua on macbook)
…es_list keys the connection stamps (refs #493)

The proxy puts cua/browserKeys on each call as it reaches a browser-surface runtime, and the kernel's cua API reads it;
the expected key list said otherwise. Behaviour unchanged.

Sminos-Session: cursor235#b93055dd (cua on macbook)
@SSFSKIM
SSFSKIM marked this pull request as ready for review November 23, 2026 09:57
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T10:00:19.029884Z 171b356 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM merged commit 435420c into main Nov 23, 2026
7 checks passed
@SSFSKIM
SSFSKIM deleted the fix/493-maws-first-use branch November 23, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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)

1 participant