Repository navigation
CONTRACT: feat(ui-react,ui-kit): wire the Start card for service, persona and recovery (#3698) - #3970
Conversation
… each Start (#3616) createApp accepts conversationProviders and defaultConversationProviderId; conversationProvider still means a list of one. Startup fails on both options, duplicate ids or an unregistered host default. A new Start uses a one-time pick (conversation_start.providerId, which must equal the disclosed profile), else the saved default only if registered, else the host default or the only service when nothing is saved, else none. A saved but unusable default never falls through. A resume keeps the service its conversation opened with. server_hello adds conversationProfiles and liveDefault and keeps conversationProfile only while a service is effective (R1). A save sends live_settings to open connections. conversation_opened adds providerSource. GET/PUT /api/settings/voice read and save voice.live.defaultProvider in the settings store, behind a new owner-only write guard (owner password/passkey session or ambient human; 403 with an empty body otherwise), with 400 LIVE_PROVIDER_UNKNOWN and 409 LIVE_SETTINGS_CHANGED. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LiveServiceSettings draws the registered services as 52px radio rows with saved default, host default and in use now marks, a dashed unavailable row that cannot be chosen, the zero and one service variants, saving, stale and failed states and the read-only owner line. A wide container puts the label in a 140px column and two services side by side. Stories cover every state at 320px and desktop in both themes, plus the full pane with Dictation and Persona neighbours. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… and before Start (#3616) Settings › Voice adds the Live service group under Dictation. Picks save brain-wide at once through a root-owned, latest-wins queue; 403 turns the group read-only, 409 reloads with "Changed on another device". The conversation client reads the hello roster and live_settings, pins the service an explicit Start agreed to for that entry, and exposes chooseService() for a one-time pick that is never saved; Start sends providerId. The disclosure sheet offers that pick when several services are usable or the saved default is unavailable, as a minimal stand-in until the Start card (#3698). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#3616) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…#3616) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The live-service default joins the persona group on the one /api/settings/voice route (design §6): top-level defaultProvider/revision beside persona with its own revision, under the owner-only write guard. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ith personas (#3616) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sona and recovery (#3698) Live conversation opens on the kit StartCard instead of the pre-Start disclosure sheet. The card names the service Start would open, carries the full former disclosure behind "What's shared", shows Change only with two or more usable services (one-time, never saved), requires an explicit Choose when the saved service is unavailable, and saves a picked persona as the default (V2). S3/S3b/S3c and an unusable persona render as the card's notice, with one-time "Use the default voice this time" and "Use Standard this time". The conversation client gains personaChoice/choosePersona so Start sends exactly the persona and voice the card shows; a refused first Start may pick again. The kit Service row no longer breaks its key and link at 320px. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… into feat/3698-wire-start-card
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No uploads on this PR yet This PR changes UI files (
Tips for agentsLabel each shot so reviewers know what they're seeing. Labels apply to every file in a call, so run one uploads put after.png --pr 3970 --meta path=/settings --state after --caption "Saved settings toast"
uploads put chat.png --pr 3970 --app ios --screen "Chat" --state afterNo CLI? With the Uploads MCP, call This comment updates with each upload, so you don't need to post the images yourself. A shot or two in the PR description is still welcome. Check what's attached with Workspace admins can turn this comment off in Settings → GitHub · docs |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…#3698) A Start without a card pick sends the saved persona; if the host's fresh live_persona frame arrives before Start, the edit is already disclosed and Start opens it. Picking the persona on the card pins the old revision, so the refusal path is the one exercised. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Closes #3698
What changed
Live conversation now opens on the kit
StartCard(#3692, used unchanged apart from one CSS line) instead of the pre-Start disclosure sheet. The card names the service Start would open and lists the full former disclosure behind "What's shared". Its Service row shows Change only when two or more services are usable; each press moves to the next service for this conversation only and never writes the saved default (#3616 L1). When the saved service is unavailable (S3d), the row asks to Choose a service and Start stays unavailable until one is picked; the host default is never substituted (L2). The persona list preselects the saved persona, and a pick also saves it as the default (V2).One notice above Start covers the recovery states:
To make Start send exactly what the card shows, the conversation client gains
personaChoiceandchoosePersona(ref | null). Start sends that ref, including the one-timestandard/builtinandvoice: "default"choices. A refused first Start, which opened nothing, may pick a service or persona again. ACONVERSATION_PERSONA_CHANGEDrefusal clears the choice. Refusals still render as the stoppedVoiceNotice, whose Start again reopens the card.Why this shape
StartCardprops; no new visual design.providerStatusexactly. The host's ownlivePersona.providerswins when it describes the same file.flex: none; white-space: nowrap. This is a layout bug fix, not a design change.Proof
{"version":1,"kind":"brain-check-pr-receipt","head":"4767ee0cf37fe548183a50eef56b01580040450b","base":"origin/main","mode":"focused","startedAt":"2026-11-11T04:45:46.845Z","finishedAt":"2026-11-11T04:47:20.913Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":12219.355726},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":104.47162099999878},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":69.3655859999999},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":22.204413999999815},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":81636.612402}]}New app browser test:
packages/ui-react/tests/start-card-runtime.test.ts.conversation_startit sent, and the server records the double that opened and its options. The disclosed service, persona and voice match both.Mutation receipts (320px case; the file was restored and passes 10/10 afterwards):
client.start()after Change: NO_CONVERSATION_FRAME_BEFORE_START["conversation_start"]client.start()after a persona pick: NO_CONVERSATION_FRAME_BEFORE_STARTPUTsdefaultProviderCHANGE_IS_NOT_SAVED{ defaultProvider: "gpt-live", revision: 1 }writeV2_PICK_IS_SAVEDharbour-storyteller, receivedithaca-stewardUpdated for the card:
live-service-runtime.test.ts(CONTRACT: feat(ui-server, ui-react): configure the default live-conversation service in Settings › Voice (#3616) #3956's proof): 8 pass.ui-react-layoutoffline files, 391 pass:conversation.offline.tsxconversation-controls.offline.tsxconversation-consent.offline.tsxconversation-contextual.offline.tsxconversation-continuous.offline.tsxconversation-discard.offline.tsxconversation-endpoint.offline.tsxdialogue-qualifiers.offline.tsxdialogue-drain-deadline.offline.tsxdialogue-recovery.offline.tsxrail-mixed, 21 pass:composer-mic.pointer.tsx,attach-tooltip.pointer.tsx.Collisions (
bun scripts/collisions.ts --json --pr 3970, head4767ee0c):conversation-client.ts,api-report/ui-react.txtandconversation.offline.tsx.Checklist
docs/reflect the change, or nothing documented moved.Anything left open
ConversationStartCard,packages/ui-react/src/components/voice/start-card.tsx), and Escape anywhere inside it leaves.client.details()) also opens the card mid-conversation, as it opened the sheet before.micOn, unchanged from ui-react: wire live conversation (L1–L10) to the tall voice field #3699.be9f6f4c). Everything above was rerun on head4767ee0c:start-card-runtimeandlive-service-runtime: 18 pass;composer-micandattach-tooltip(pointer): 21 pass;tests/runtime-build-selection.test.ts: 852 pass.scripts/runtime-test-builds.ts, and the count is 24.f56603e5merges main38aeb5fd; that merge brings no conflicts and nothing that touches these files.🤖 Generated with Claude Code