Skip to content

fix(accounts): hide host-managed credentials from personal sign-ins - #2450

Open
JustYannicc wants to merge 21 commits into
UsefulSoftwareCo:v2from
JustYannicc:feat/host-managed-accounts
Open

JustYannicc wants to merge 21 commits into
UsefulSoftwareCo:v2from
JustYannicc:feat/host-managed-accounts

Conversation

@JustYannicc

Copy link
Copy Markdown
Contributor

Host-provisioned credentials currently appear as personal saved sign-ins and as healthy setup sections. This hides accounts whose selected method declares provisioned: true from human lists and pickers. Editors still see a missing link or a failed check under the app that needs repair.

Related to #2444. This stacks on and depends on #2428, at commit 26d64f2a58c6bb8cd7dc1270499f733fc7cfd370. The PR targets v2; the changes above that dependency are the account-visibility rules and their E2E coverage.

What changed

The SDK exposes one method-level predicate, so mixed providers keep their ordinary sign-ins visible. Hosted and local list and picker paths use it. The app Accounts tab hides healthy host credentials, keeps checks running while their rows are hidden, and shows repair details only to editors. Server link guards still refuse replacing a provisioned credential.

This does not change account storage or delete accounts. The default app's existing API-key declaration is separate from these generic rendering rules.

Validation

  • bun run format, bun run check, and bun run e2e:check passed.
  • Four targeted self-host scenarios have passing runs under Bun 1.4.2: host-managed visibility, provisioned accounts, mixed providers, and the provisioned radio-link guard.
  • The initial visibility run exposed an exact-label selector mismatch; the corrected selector passed. The mixed-provider run had a transport failure and passed with one worker.
  • Before/after screenshots use synthetic loopback-only fixtures. They were captured in the downstream product using the same visibility rules.
host-managed-accounts.spec.ts
provisioned-accounts.spec.ts
provisioned-mixed.spec.ts
provisioned-link-boundary.spec.ts

Model and harness: gpt-6.1-sol in T3 Code.

JustYannicc and others added 18 commits October 31, 2026 01:56
Keep v2 protocol 14 frozen, record the interactive host protocol as 15, and adapt account acquisition to the current host crypto and ownership contracts. Update the lifecycle scenario to match v2 user-account ownership.

Release-note: Feature: Apps can complete interactive device-code and paste-back account sign-ins.
Preserve v2 protocol 14 as a frozen contract and record combined account features under protocol 15. Keep v2 provider guides, underscored-host support, and Bun package staging with the account-status and provisioned-link behavior.

Release-note: Feature: Apps can display bounded account status and declare host-provisioned credentials.
Preserve the host-managed account rules with the current health and account-scope contracts.

Release-note: Fix: Hide host-managed credentials from personal sign-ins and show editors when repair is needed.
Release-note: Improvement: Keep host-managed credentials out of personal sign-ins while exposing repair state to editors.
The GraphQl path alias fixes a v2 baseline typecheck failure that is not
part of this change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

This branch has not been deployed

No deployments
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