Skip to content

Report a bound profile with no live Chrome host as host_not_live, with the wake step - #19

Merged
SSFSKIM merged 4 commits into
mainfrom
feat/no-live-host
Oct 5, 2026
Merged

SSFSKIM merged 4 commits into
mainfrom
feat/no-live-host

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

What

A bound profile whose Chrome extension host is not running is now reported as host_not_live, with the step the user has to take, in both profiles_list (MCP) and cua profiles list. Before this change it showed up as backends_unlistable ("is Chrome open?").

  • host_not_live: the readiness listing worked and found no live Google Chrome backend at all, so no host serves the profile, whatever its binding. The message names the profile key, the registered Chrome profile directory and one step: open Chrome profile "" and click the OpenAI (ChatGPT) extension's icon to wake it, then retry. Toggling the extension at chrome://extensions is mentioned only together with cua profiles bind <key>: a toggle can mint a new instance id (it did on the first Mac, not on the second), so offering it as a plain wake could produce a stale binding.
  • backends_unlistable now means only that the listing launch itself failed.
  • binding_stale keeps its code; only its message changed. It applies when other backends are live but the bound id is not among them. Backends are usually unlabelled, so cua cannot tell "this profile's host alone is asleep" from "a new instance id". The message says so and gives both steps, the wake first.
  • The registered profile's directory now appears in the guidance text where the user's step happens in that profile. The structured entries still carry no directory, and display names never leave cua.

Where the gate sits (and why no launch was added to js)

profiles_list already runs one bounded readiness listing per request, and it is the only place the agent gets an instance id: it hands one out only for a live profile. cua.getBrowser({extensionInstanceId}) runs inside the REPL (@oai/cua tinysky_alt/create_browser_api.js). It filters the list_browsers result and throws "The Chrome instance is unavailable." itself. So cua's trusted browser wrapper never sees which id was wanted, and pre-checking every js call would mean one more runtime launch per call. A host that exits after profiles_list already makes selection fail closed; the host notes send the agent back to profiles_list, which now names the cause. cua never wakes the extension.

Checks

  • npm test: 405/405 pass (after the review fixes). The new and changed tests fail against main (verified red before the fix).
  • Live read-only check on the owner's Mac (default CUA_HOME, node bin/cua.mjs profiles list [--json] from this branch): personal (Default) and school (Profile 6) are ready, because their hosts are live; work (Profile 8) is extension_not_installed. The host_not_live path itself was not exercised live, since producing it would mean stopping a host, and that is off limits. The fake-runtime suites cover it end to end through cua serve and the CLI.

Spec Decision Log and README "Chrome (browser surface)" updated.

Closes #6

…h the wake step

A readiness listing that works and finds no Google Chrome backend is now
evidence: a bound, otherwise ready profile reads host_not_live, naming its
key, its Chrome profile directory and the one step (open that profile and
click the OpenAI extension's icon, then retry). backends_unlistable now
means only that the listing failed. binding_stale keeps its code but says
what unlabelled backends cannot tell apart: this profile's host asleep, or
a new instance id. Toggling the extension is offered only with the rebind
it needs, since a toggle mints a new id. profiles_list and cua profiles
list share the text; no launch was added to js calls.
… can (not always does) mint a new id

replaceAll with a string replacement read $& and friends in an accepted
directory name as patterns; callbacks insert key and directory literally.
The second Mac kept its instance id across two toggles, so the guidance
says a toggle can mint a new id and keeps the rebind advice.
@SSFSKIM
SSFSKIM merged commit dea3394 into main Oct 5, 2026
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.

Browser calls: detect no live Chrome host for the bound profile and tell the user how to wake the extension

1 participant