Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
d3ef9c2
CONTRACT: feat(ui-server): register several live services and resolve…
schlessera Nov 10, 2026
7cfd3b7
feat(ui-kit): Live service group for Settings › Voice (#3616)
schlessera Nov 10, 2026
a54b0c9
CONTRACT: feat(ui-react): choose the live service in Settings › Voice…
schlessera Nov 10, 2026
c636411
docs: document the live-service default, its precedence and activatio…
schlessera Nov 10, 2026
1aca3ae
Merge remote-tracking branch 'origin/main' into feat/3616-live-provid…
schlessera Nov 10, 2026
63c9a48
test(ui-react): re-audit the connection handler map for live_settings…
schlessera Nov 10, 2026
91eacd3
Merge origin/main into feat/3616-live-provider-default
schlessera Nov 11, 2026
5453e00
test(ui-sdk): type the live roster hello comparison (#3616)
schlessera Nov 11, 2026
7b87d76
Merge remote-tracking branch 'origin/main' into feat/3616-live-provid…
schlessera Nov 11, 2026
6662c53
Merge origin/main (#3955 personas) into feat/3616-live-provider-default
schlessera Nov 11, 2026
3a9e976
CONTRACT: docs: the live-service default shares /api/settings/voice w…
schlessera Nov 11, 2026
5006da6
Merge remote-tracking branch 'origin/main' into feat/3616-live-provid…
schlessera Nov 11, 2026
233872b
test: inventory the live service runtime proof (#3616)
schlessera Nov 11, 2026
d3939af
Merge remote-tracking branch 'origin/main' into feat/3616-live-provid…
schlessera Nov 11, 2026
c81132b
Merge remote-tracking branch 'origin/main' into feat/3616-live-provid…
schlessera Nov 11, 2026
af4be9f
Merge remote-tracking branch 'origin/main' into feat/3616-live-provid…
schlessera Nov 11, 2026
e928c04
Merge remote-tracking branch 'origin/main' into feat/3616-live-provid…
schlessera Nov 11, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .changeset/3616-live-service-default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
"@schlessera/brain-ui-sdk": minor
"@schlessera/brain-ui-server": minor
"@schlessera/brain-ui-react": minor
"@schlessera/brain-ui-kit": minor
---

Choose the default live-conversation service in Settings › Voice (#3616).

- **Server.** `createApp` accepts `conversationProviders` (several live services) and `defaultConversationProviderId`; `conversationProvider` still means a list of one. Startup fails on both options, duplicate ids or a default that is not registered. `GET`/`PUT /api/settings/voice`, shared with the persona selection, add a top-level `defaultProvider`/`revision` pair for the brain-wide default with its own revision. Writing has its own owner-only guard: the owner's password or passkey session or the ambient human; anyone else gets 403 with an empty body. Unknown ids are 400 `LIVE_PROVIDER_UNKNOWN`, stale revisions 409 `LIVE_SETTINGS_CHANGED`.
- **Wire.** `server_hello` adds `conversationProfiles` and `liveDefault`, and sends `conversationProfile` only while a service is effective, so a single-provider host is unchanged. A save sends `live_settings` to open connections. `conversation_start` accepts `providerId`, which must equal the disclosed profile's; `conversation_opened` adds `providerSource`.
- **Selection.** A Start uses a one-time pick, else the saved default if it is still registered, else the host default or the only service when nothing is saved. A saved default that is no longer registered requires an explicit pick and is never replaced by the host default. A save applies from the next explicit Start; a running conversation and its reconnects keep their service. Nothing probes a credential, and saving opens no provider, microphone or history.
- **App.** Settings › Voice gains the Live service group (kit `LiveServiceSettings`), and the pre-Start disclosure sheet offers the one-time pick when several services are usable or the saved default is unavailable.
38 changes: 38 additions & 0 deletions api-report/ui-kit.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ export "." (./src/index.ts)
ListRow
type ListRowProps
type ListRowVariant
type LiveServiceOption
LiveServiceSettings
type LiveServiceSettingsProps
type LiveServiceStatus
type MapCluster
type MapLand
type MapPath
Expand Down Expand Up @@ -1590,6 +1594,40 @@ signatures (every public export and the types it is made of)
}
ListRowVariant (packages/ui-kit/src/types.ts)
export type ListRowVariant = "group" | "card" | "launcher" | "plain";
LiveServiceOption (packages/ui-kit/src/voice/LiveServiceSettings.tsx)
export interface LiveServiceOption {
id: string;
name: string;
detail?: string;
}
LiveServiceSettings (packages/ui-kit/src/voice/LiveServiceSettings.tsx)
export function LiveServiceSettings(p: LiveServiceSettingsProps): import("react").JSX.Element;
LiveServiceSettingsProps (packages/ui-kit/src/voice/LiveServiceSettings.tsx)
export interface LiveServiceSettingsProps {
services: LiveServiceOption[];
checked: string | null;
saved?: string | null;
hostDefault?: string | null;
inUse?: string | null;
savedUnavailable?: LiveServiceOption | null;
status?: LiveServiceStatus | null;
readOnly?: boolean;
disabled?: boolean;
loading?: boolean;
loadError?: boolean;
onChoose?: (id: string) => void;
onRetry?: () => void;
onReload?: () => void;
}
LiveServiceStatus (packages/ui-kit/src/voice/LiveServiceSettings.tsx)
export type LiveServiceStatus = {
kind: "saving";
} | {
kind: "stale";
} | {
kind: "failed";
text: string;
};
MAILTO_ADDRESSES_MAX (packages/render-template/src/links.ts) recorded in api-report/render-template.txt
MailVerdict (packages/render-template/src/links.ts) recorded in api-report/render-template.txt
MapCluster (packages/ui-kit/src/blocks/MapView.tsx)
Expand Down
8 changes: 8 additions & 0 deletions api-report/ui-react.txt
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ signatures (every public export and the types it is made of)
disclosureOpen: boolean;
profile: ServerConversationOpened | null;
conversationProfile: ConversationProfile | null;
conversationProfiles: ConversationProfile[];
liveDefault: LiveDefault | null;
serviceChoice: string | null;
livePersona: LivePersonaStatus | null;
durableAvailable: boolean;
sessionId: string | null;
Expand Down Expand Up @@ -1134,6 +1137,7 @@ signatures (every public export and the types it is made of)
hygieneReview: () => Promise<HygieneReviewRead>;
livePersona: (id: string) => Promise<LivePersona>;
livePersonas: () => Promise<LivePersonaListResponse>;
liveSettings: () => Promise<VoiceLiveSettings>;
login: (password: string) => Promise<{
ok: true;
}>;
Expand Down Expand Up @@ -1237,6 +1241,7 @@ signatures (every public export and the types it is made of)
refreshModels: () => Promise<ModelCatalogResponse>;
saveDictationSettings: (settings: DictationSettings) => Promise<DictationSettings>;
saveLivePersonaSelection: (value: string, revision: number) => Promise<VoiceSettingsResponse>;
saveLiveSettings: (update: VoiceLiveSettingsUpdate) => Promise<VoiceLiveSettings>;
sessionRecovery: (sessionId: string, opts?: {
signal?: AbortSignal;
}) => Promise<SessionRecoveryResult>;
Expand Down Expand Up @@ -1390,6 +1395,7 @@ signatures (every public export and the types it is made of)
connect: () => () => void;
conversation: {
attachControls(): () => void;
chooseService(providerId: null | string): void;
commit: (own: number) => boolean;
details(): void;
discard(): void;
Expand Down Expand Up @@ -1645,6 +1651,7 @@ signatures (every public export and the types it is made of)
hygieneReview: () => Promise<import("@schlessera/brain-ui-sdk").HygieneReviewRead>;
livePersona: (id: string) => Promise<import("@schlessera/brain-ui-sdk").LivePersona>;
livePersonas: () => Promise<import("@schlessera/brain-ui-sdk").LivePersonaListResponse>;
liveSettings: () => Promise<import("@schlessera/brain-ui-sdk").VoiceLiveSettings>;
login: (password: string) => Promise<{
ok: true;
}>;
Expand Down Expand Up @@ -1748,6 +1755,7 @@ signatures (every public export and the types it is made of)
refreshModels: () => Promise<import("@schlessera/brain-ui-sdk").ModelCatalogResponse>;
saveDictationSettings: (settings: import("@schlessera/brain-ui-sdk").DictationSettings) => Promise<import("@schlessera/brain-ui-sdk").DictationSettings>;
saveLivePersonaSelection: (value: string, revision: number) => Promise<import("@schlessera/brain-ui-sdk").VoiceSettingsResponse>;
saveLiveSettings: (update: import("@schlessera/brain-ui-sdk").VoiceLiveSettingsUpdate) => Promise<import("@schlessera/brain-ui-sdk").VoiceLiveSettings>;
sessionRecovery: (sessionId: string, opts?: {
signal?: AbortSignal;
}) => Promise<import("@schlessera/brain-ui-sdk").SessionRecoveryResult>;
Expand Down
Loading
Loading