Skip to content

ui-kit: add thinking-level settings and Start-card controls #4014

Open

Description

@schlessera

Out of scope

No provider implementation, settings persistence/routes, app wiring, new voice service, paid qualification or deployment changes. The integration and durable decision updates remain #3976. This task supplies presentational kit controls and stories first.

Context

#3976 adds a separately registered Gemini thinking service. The maintainer approved its thinking-control direction on 2026-11-15 and requested this separate kit prerequisite. Read #3976's November 15 decision and November 15 design proposal alongside docs/decisions/live-conversation.md, docs/decisions/voice-permission.md and the existing design-kit interaction rules.

At main SHA c09454c, source anchors are StartCardProps (packages/ui-kit/src/voice/StartCard.tsx:30), StartCard (:61) and LiveServiceSettings (packages/ui-kit/src/voice/LiveServiceSettings.tsx:60). Existing stories are packages/ui-kit/stories/voice/Start.stories.tsx and LiveService.stories.tsx. The app consumer is LiveServiceGroup (packages/ui-react/src/components/settings/live-service-settings.tsx).

Scope

  • Add optional thinking presentation/change support to StartCard and a ThinkingLevelSettings group using existing kit styles, radios, status/error and owner-read-only patterns. Public props remain additive; the kit performs no persistence, provider calls, microphone access or history reads.
  • Settings places Thinking under Live service, above Persona. Show it whenever the thinking service is available, even if another service is the saved default, with “Used when Gemini (thinking) is the service.” A retained saved choice for an unavailable service may be displayed with “Not on this host now”; do not suggest it is usable.
  • Low, Medium and High are discrete choices; Medium is the initial host default. Saved values, host fallback and a currently running level remain distinguishable.
  • The Start card shows Thinking only for the effective thinking service; Change opens inline radios with Done/Escape collapse. A temporary change is visibly “this conversation”. Changing away drops the override; changing back uses the saved default (or disclosed host fallback).
  • Disclose the level before Start. Controls cannot start anything, and a Start override never saves. A running conversation keeps its level.

Acceptance criteria

  • Optional StartCard thinking props and ThinkingLevelSettings implement the approved state/action/copy mapping from ui-server: support gemini-3.8-live-extended-thinking as a live-conversation model #3976, with these rulings taking precedence over conflicting proposal wording.
  • Settings stories cover each level, saved/host/in-use marks, saving, stale conflict, failure/retry, owner-only/read-only, loading/reload, available-but-not-default and retained unavailable choice.
  • Start stories cover collapsed/expanded controls, override/reset on service change, fallback, unavailable saved service and three personas at 320x640. The parent owns actual service/default state; stories demonstrate controlled callbacks without settings writes.
  • Stories cover 320px and desktop, light/dark, 200% text and reduced motion. Keyboard radio navigation, accessible names/status, 44px targets and focus restoration on collapse are verified in the real offline browser.
  • With thinking props absent, existing StartCard behavior remains unchanged. Record meaningful failing-first/mutation proof for optional rendering and change callbacks.
  • Built stories are brought back for the maintainer's visual review. Coding may proceed now; approval of direction is not visual acceptance. If this reserved review remains after implementation, hand off with the exact stories/evidence and needs: human rather than claiming completion.

Verification

Run affected kit story/browser checks under the repo offline harness, with 320px/desktop, theme, enlarged-text and keyboard proof. Record named mutation/failing-first receipts, run required affected checks and bun run check:pr --base origin/main before a PR. No keyed/network test.

Contract impact

Additive exported kit props/components require an API report, relevant integration-contract update in the same CONTRACT commit and a minor changeset under the current rules. No wire changes in this slice. #3976 owns provider/wire/settings additions and the live-conversation durable record. No release milestone is committed by this split.

Activity

  1. added
    type: featA new capability or a change in user-visible behaviour.
    area: ui-kitThe presentational design kit: components, tokens, Storybook, visual baselines.
    priority: p2Wanted, not scheduled. Pulled in when a milestone has room.
    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.
    contractTouches the integration contract: CONTRACT: commit, contract doc updated in the same commit.
    on Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: ui-kitThe presentational design kit: components, tokens, Storybook, visual baselines.contractTouches the integration contract: CONTRACT: commit, contract doc updated in the same commit.priority: p2Wanted, not scheduled. Pulled in when a milestone has room.type: featA new capability or a change in user-visible behaviour.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions