Repository navigation
Report a bound profile with no live Chrome host as host_not_live, with the wake step - #19
Merged
Merged
Conversation
…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.
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.
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 bothprofiles_list(MCP) andcua profiles list. Before this change it showed up asbackends_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 atchrome://extensionsis mentioned only together withcua 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_unlistablenow means only that the listing launch itself failed.binding_stalekeeps 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.Where the gate sits (and why no launch was added to
js)profiles_listalready 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/cuatinysky_alt/create_browser_api.js). It filters thelist_browsersresult and throws "The Chrome instance is unavailable." itself. So cua's trusted browser wrapper never sees which id was wanted, and pre-checking everyjscall would mean one more runtime launch per call. A host that exits afterprofiles_listalready makes selection fail closed; the host notes send the agent back toprofiles_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 againstmain(verified red before the fix).CUA_HOME,node bin/cua.mjs profiles list [--json]from this branch):personal(Default) andschool(Profile 6) areready, because their hosts are live;work(Profile 8) isextension_not_installed. Thehost_not_livepath 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 throughcua serveand the CLI.Spec Decision Log and README "Chrome (browser surface)" updated.
Closes #6