Skip to content

feat(computers): share connectors across linked computers - #173

Merged
nixuuu merged 1 commit into
feat/linked-shared-config-4from
feat/linked-shared-config-5
Nov 5, 2026
Merged

nixuuu merged 1 commit into
feat/linked-shared-config-4from
feat/linked-shared-config-5

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 5, 2026

Copy link
Copy Markdown
Member

Stage 5 of 7 of shared configuration across linked computers. The design is in docs/linked-computers.md.

What changes

  • Shared:
    • connected accounts: type, name, URL, transport, all-workers/all-bots access and tool list;
    • their credentials and headers, encrypted with each receiver's own key;
    • OAuth apps (client id and secret).
  • OAuth refresh: a refresh replicates as a secret field change. A computer that holds an older refresh token defers to the newer clock. The rare "needs reconnect" race in the design is accepted.
  • Identity merge: accounts with the same type, URL and account merge and get aliases. A skill source's credentialAccountId maps through those aliases.
  • Stays local:
    • per-computer status, last use and namespace, shown as "This computer";
    • worker grants, which come in stage 6;
    • bot grants, which stay with the bot's home.
  • Notices: conflicts and deletions show a notice with Restore. Delete keeps the encrypted credentials for the 90-day restore. Disconnect revokes access.
  • Fixed OAuth redirect: the behaviour from feat(connectors): create the Slack app from a prefilled manifest #162 and feat(connectors): use the fixed sign-in redirect for all connectors #167 is kept (deep link, paste-code).

Migration: 0077_config_connectors (updated_at on OAuth apps). No new proto fields.

Tests: the connector integration suite (8 tests) covers:

  • an account connected on A works on B without a reconnect;
  • a refresh on A replicates to B, and B's older token loses;
  • a rename conflict, and delete with Restore;
  • secrets never reach history, logs or the BFF, and never cross a link with sharing off;
  • the source-account alias;
  • owner scoping;
  • the migration.

Copy audit (docs/copy.md §8):

  • The obsolete local-only text is removed.
  • Delete and disconnect are worded so each says what it does.

@nixuuu
nixuuu added this pull request to stack #165 November 5, 2026 12:22
@nixuuu
nixuuu force-pushed the feat/linked-shared-config-5 branch from e6a00d3 to be80ca0 Compare November 5, 2026 14:43
@nixuuu
nixuuu marked this pull request as ready for review November 5, 2026 14:44
@nixuuu
nixuuu merged commit df5da35 into dev Nov 5, 2026
10 checks passed
@nixuuu
nixuuu deleted the feat/linked-shared-config-5 branch November 5, 2026 14:51
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.

1 participant