Repository navigation
MAWS in-app browser: profile keys as browser ids, MAWS named, visible ignored on cua's host (#493, 0.29.3) - #498
Merged
Merged
Conversation
…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)
… visible exception documented (refs #493) 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)
…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
marked this pull request as ready for review
November 23, 2026 09:57
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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})threwCapability is not available: visibility;"iab"and"maws"were refused as browser ids, althoughprofiles_listnamedmaws;Both sessions ran the vendor REPL host, which is the darwin default with the computer surface. There, the
iab/visibletext and the capability check increateBrowserTabare the pinned vendor runtime's code.The fix, in cua's shared browser service and proxy (both hosts)
getBrowserandcreateBrowserTabaccept aprofiles_listkey (maws,personal, …). A key is tried only after id, type and family.iab,chrome,extension,cdp,mcpapps,edge) are never keys.maws,maws-<n>) is never a Chrome profile's.mawsfalls back to the first MAWS instance, as the bare default does.cua/browserKeys, at send time (held calls included), and drops any client-sent value.visibleout;mawsor another key works where an id goes;visiblewithout the capability is ignored, and the result says so (core.md and the parity oracle carry the exception). MAWS gets novisibilitycapability (ruling 1107).Evidence
iab,chrome,extension,maws,maws-2(late), a rebound key and a missed key; each row fails on the first head.maws-selection.mjs(fake peers): 16/16 PASS, includingexplicit-chrome, now seeded with a tab of the person's and asserting it untouched (it failed on main too, a harness artifact of Ending a session can close the user's Chrome window and kill the profile's extension host: no last-tab guard when closing agent tabs #148's keep-window tab).docs/evidence/2026-11-23-maws-first-use/).--steps literalVendor, a secondcua servewithcomputer,browsersurfaces and the default engine). Every call attested the vendor host. The first-use document names "MAWS in-app browser (maws)".{visible: true}throws the declared MAWS on the vendor REPL host: createBrowserTab(..., {visible: true}) throws 'Capability is not available: visibility' until the macOS default switch #496 error. The open without it, andcreateBrowserTab("maws", …), land in the MAWS browser. Theiabmiss lists ids and keys.profiles,service,firstUse,mawsKeyandkeyMissall PASS.src/repl-host/identity.mjs's rule).Review.
Limits
{visible: true}still throws (MAWS on the vendor REPL host: createBrowserTab(..., {visible: true}) throws 'Capability is not available: visibility' until the macOS default switch #496, closes with the macOS default switch). cua's rule tells agents to leave it out.Sminos-Session: cursor235#b93055dd (cua on macbook)