Skip to content

profiles bind: label live backends with their Chrome profile directory and name, computed by cua itself #21

Closed

Description

@SSFSKIM

Purpose

Spike #8 showed the vendor's profile enrichment cannot label backends under cua serve (node_repl's default sandbox denies the temp-directory write it needs), so every profiles bind shows bare instance ids and the user must map them to Chrome profiles by hand. cua can compute the mapping itself, in the CLI process, outside the vendor runtime.

Success criteria

  • cua profiles bind <key> (interactive candidate list and --json) shows, beside each live Chrome-family backend's instance id, the Chrome profile directory (e.g. Profile 12) and the profile's display name when known.
  • Method: read Chrome's Local State for the profile list; for each profile, copy the ChatGPT extension's settings store (Local Extension Settings/<extension id>) to a temp directory under CUA_HOME (never read the live store in place; never write into Chrome's directory), read extensionInstanceId with the classic-level already present in the relocated cua_node tree, and match it to the live backends. Clean the temp copies.
  • Unreadable Chrome data (chrome_data_unreadable) degrades to unlabelled candidates with the Full Disk Access hint; no failure.
  • The explicit pick stays mandatory (design constraint): a candidate whose directory equals the key's registered directory is marked as the likely match, never auto-bound.
  • Tests with fixture stores; a live read-only check on the owner's Mac recorded in the PR; spec Decision Log line.

Reference

Issue #8 comment (commands, raw values, where the vendor code fails); spike script left on the mini at /tmp/cua-spike8/.

Update (2026-10-05, after #20)

With the sandbox metadata now sent (#20), the vendor's own profileName labels appear on live backends. First step: show that label beside each candidate in profiles bind (interactive and --json). The directory mapping above becomes the second step, needed only where names collide (they do on the mini). The dogfood report also showed an agent binding a profile on its own from tab contents; labels make the user's pick easy, and #23 tells agents never to bind. The explicit pick stays mandatory.

Activity

  1. added
    enhancement
    status:ready-for-implementer
    priority:P2
    status:in-progress
    and removed
    status:ready-for-implementer
    on Oct 5, 2026
  2. SSFSKIM commented on Oct 5, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: Step 1 started: showing the vendor's profileName label beside each candidate in profiles bind (interactive and --json); directory mapping (step 2) stays out of scope.

  3. added
    status:in-review
    and removed
    status:in-progress
    on Oct 5, 2026
  4. SSFSKIM commented on Oct 5, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: Step 1 in review: vendor labels beside bind candidates, likely match marked, automatic bind removed. Step 2 (directory mapping) not done; issue stays open for it.

  5. added
    status:deferred
    and removed
    status:in-review
    on Oct 5, 2026
  6. SSFSKIM commented on Oct 5, 2026

    @SSFSKIM
    OwnerAuthor

    [board] deferred: Step 1 (vendor labels + automatic bind) merged in PR #27. Step 2 (directory mapping from extension-store copies) is needed only where display names collide (seen on the mini); take it up when that bites.

  7. added
    status:ready-for-implementer
    and removed
    status:deferred
    on Oct 6, 2026
  8. SSFSKIM commented on Oct 6, 2026

    @SSFSKIM
    OwnerAuthor

    [board] ready-for-implementer: Un-deferring: names collide on the mini (owner confirmed); step 2 goes ahead.

  9. added
    status:in-progress
    status:in-review
    and removed
    status:ready-for-implementer
    status:in-progress
    on Oct 6, 2026
  10. added a commit that references this issue on Oct 6, 2026
  11. removed
    status:in-review
    on Oct 6, 2026
  12. SSFSKIM commented on Oct 6, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: Step 2 merged in PR #45: profiles bind maps live backends to Chrome profile directories via copied extension stores (classic-level), directory match beats name for the automatic bind, --dry-run added; 501 tests. Mini (colliding names) covered by fixtures, not live.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpriority:P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions