diff --git a/doc/connections/AI-CONNECTIONS.md b/doc/connections/AI-CONNECTIONS.md index 51b1b389c4a..d70734f0458 100644 --- a/doc/connections/AI-CONNECTIONS.md +++ b/doc/connections/AI-CONNECTIONS.md @@ -10,6 +10,12 @@ homes. Managed default/shared accounts are additional choices in that same selector. Selecting “Sign in to another account” survives background refreshes; Claude authorization paste keeps upstream's immediate Connecting feedback. +New-agent Connect offers subscription, API key, and advanced connection as +equivalent modes. “Use advanced connection instead” sits below the native +credential switch; it opens the existing compatible-connection picker and +provider setup. Only the selected mode's form is shown. Execution environment +selection lives in Configure. + Storybook's simulated controllers and page annotations do not run in the app. ## Compatibility and selection diff --git a/ui/src/components/ai-connections/AiConnectionField.test.tsx b/ui/src/components/ai-connections/AiConnectionField.test.tsx index f68283bbaac..9603e6fd1f5 100644 --- a/ui/src/components/ai-connections/AiConnectionField.test.tsx +++ b/ui/src/components/ai-connections/AiConnectionField.test.tsx @@ -18,6 +18,7 @@ vi.mock("./AiConnectionCredentialStep", () => ({ }, })); vi.mock("./AiConnectionManagement", () => ({ AiConnectionLegacyNotice: () => null })); +vi.mock("./AiProviderSetup", () => ({ AiProviderSetup: () =>
Could not load agents.
} {step === "provider" ? ( <> + {advancedOnly ? choices(true) : <> {choices(false)}{savedKeys.options.length} saved API{" "} @@ -438,6 +454,7 @@ export function AgentProviderConnection({ } else void connect(); }} /> + >}
Continue to Configure with {connected.aiConnection?.provider}.
} +