Repository navigation
profiles bind: show the vendor's profile label beside each candidate - #27
Conversation
…bind without a pick profiles bind now lists each live Chrome backend with its profileName (the label the vendor's enrichment attaches since #20), or unlabelled, interactively and in --json. M11's automatic branch is removed: its rule only marks the likely match for the user to confirm, and an unpicked bind returns pick_required. Part of #21 (step 1; the directory mapping is step 2).
JSON quoting leaves U+0080-U+009F raw, and U+009B is a CSI in C1-aware terminals, so a vendor label could erase the candidates the user picks from. Part of #21
|
Independent review (reviewer-medium): verdict was incorrect on one P2 finding. The no-pick path, the likely-match rule, family filtering and the acceptance test-name claims all matched the intent, and tests passed 415/415. The finding: JSON quoting leaves C1 controls raw (U+009B is a CSI), so a vendor label could erase the printed candidates in a C1-aware terminal. Fixed in the head commit: the text renderer now also escapes U+0080–U+009F and bidi overrides, and the CLI end-to-end test checks this. |
…on on #27) When the registered profile's Local State display name is unique and exactly one live Chrome backend carries it, bind binds it as M11 designed and lists the candidates with that backend marked as the likely match. Every other case stays pick_required with labelled candidates. The Decision Log entry is replaced and M11's superseded note dropped. Part of #21
|
Reviewer-low pass on the restoration commit |
What
cua profiles bind <key>now shows, beside each live Google Chrome candidate, the profile label OpenAI's browser service attaches (profileName, present since #20 sends the sandbox state), orunlabelledwhen there is none, in both the interactive picker and--json.--jsonentries gainprofileName(null when unlabelled); the existinglabelclassification (this-profile/other-profile/unlabelled/comparison-unknown) is kept. Printed labels are JSON-quoted with C1 controls and bidi overrides escaped, so a label cannot drive the terminal or reorder the rows.Binding rule (owner's decision on this PR)
M11's automatic branch is kept now that labels exist. When the registered profile's
Local Statedisplay name is unique among Chrome profiles and exactly one live Chrome backend carries it,bindbinds that backend (how: "automatic"). It then prints the candidates with that backend marked<- likely match(likelyMatch: truein--json), so the user sees which label decided it.Every other case is
outcome: "pick_required"with thereason, and needs the user's pick: no labels, an unknown or unreadable name, a name shared by another profile, two backends carrying the name, or no backend carrying it.undeterminedremains only forno_live_backends.--extension-instance-idand the interactive picker are unchanged, and a pick is still refused when the runtime labels that backend as another profile.Privacy: vendor labels on bind candidates are shown to the user, which supersedes M11's "display names never leave" rule for them; they are still never stored. The registered profile's own
Local Statename is not reported, and a non-Chrome backend still leaves only its family. The spec Decision Log entry records this.Not in this PR (step 2 of #21)
cua's own instance-id → profile-directory mapping (reading copies of each profile's extension settings store) is out of scope. It is what disambiguates profiles that share a display name; until then those cases need the user's pick.
Verification
npm test: 416/416. Tests cover:pick_required, nothing written);cua profiles bindtext and--jsonagainst the fake runtime in a scratch home.CUA_HOME(first revision;bindwas never run against the real registry):profiles list --jsonwas unchanged in shape.work) is refused before any launch (extension not installed)."ssfs.org"and"Minhyeok".399ccb3. A reviewer-low pass on the restoration commit follows.Part of #21