Skip to content

Connect your AI connects several, each with a check - #2194

Merged
guidovizoso merged 5 commits into
mainfrom
guido/onboarding-ai-connections
Nov 25, 2026
Merged

guidovizoso merged 5 commits into
mainfrom
guido/onboarding-ai-connections

Conversation

@guidovizoso

Copy link
Copy Markdown
Collaborator

What this changes

Onboarding's Connect your AI now connects several AIs, as Settings has since #2069. Before, it took one connection and then showed only that one with Change, so a second meant finishing onboarding and finding Settings → Providers.

  • Connect your AI (OpenBot Cloud, for somebody whose runs have no AI yet). Each connection goes back to the provider list, where what is connected has a check. The person connects another or goes on. One is enough to go on, and the step's button stays gated by the server's uses, as before. A line only a screen reader hears says what was just connected. The words now say "Connect one or more".
  • The provider list, in onboarding and in Settings' Connect another AI. A connected provider's row says what it is ("Uses your Anthropic API key."), with a check in place of the word Connected. It says Default once two or more are connected. One that can't run shows why, with Reconnect. Choosing a connected one opens it on the way it was connected, to replace it.
  • Older servers. Against an OpenBot without the list (404), or where a person can't have their own (409), the step draws the one connection's chooser it drew before.

Onboarding never asks which connection is the default: the first one is, as the server decides, and switching stays in Settings. A person with connections and no default never reaches this step, because the server answers their uses as personal.

App only. Nothing under api/, no backend change, no new backend pin.

Where it runs

  • New state that outlives a request? None. Connections and the default live on the server. The app keeps only its query cache and which round of the list it is on.
  • What happens on the second replica? Nothing new: every read and write goes to the API.
  • Anything serialised? No.
  • Anything fanned out to a browser? No.
  • New listener, port, or schedule? No.

Boundary and audit

  • Every acting call still goes through the gateway: resolve, decide, audit, then act.
  • New refusals and new failures each write a row. There are none new: connecting uses connectPersonalAiConnection, which is already audited.
  • Nothing new is trusted from the client that the server can resolve itself.

API and database

  • Nothing under api/, no database change and no release-policy.json. The app's requests change only in which existing operations Connect your AI calls: listPersonalAiConnections and connectPersonalAiConnection (merged in Several AI connections at once, one per provider #2069) in place of replacePersonalAiConnection. The sign-ins it starts are the same.

Changelog

  • A line in CHANGELOG.md under Unreleased, under the several-AIs entry.

Proof

  • OPENBOT_APP_BROWSER=1 bun test app/tests/connect-your-ai.test.tsx: 29 pass, 3 screenshot-only skipped. Two are new:
    • Several connections: a refused key, a good one (back to the list, checked, Continue on), then xAI's sign-in as a second (both checked, Anthropic says Default). It also checks that every connect posts connectPersonalAiConnection and never the replace, and that choosing a connected one reopens it on its key. No sideways scroll.
    • The same on a phone in dark mode.
  • bun test app/tests/ai-connection-list.test.tsx: 30 pass. One is new: Default among several, and a stopped connection's Reconnect opening on its own way in.
  • The other onboarding and provider tests pass, including admin-providers-connection, ai-connection-dialog, onboarding-orb-room, onboarding-window-buttons and service-terms in Chromium. tsc --noEmit and Biome are clean.
  • Seen as the browser tests' screenshots, at 1440 light and 390 dark. Not yet run against a live backend.

@guidovizoso
guidovizoso merged commit 0b7cf15 into main Nov 25, 2026
23 checks passed
@guidovizoso
guidovizoso deleted the guido/onboarding-ai-connections branch November 25, 2026 14:19
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