Skip to content

ui-react: wire live conversation (L1–L10) to the tall voice field #3699

Closed

Description

@schlessera

Context

Part of #3690. Prerequisite: #3692, which supplies the tall VoiceField, the VoiceControlButtons, VoiceNotice and the L1–L10 stories, signed off. This issue is integration only: it maps the createConversationClient state onto those components and removes the old overlay and its diagnostic labels.

Live states L1–L10

State mapping

State Driven by Controls
L1 Listening capturing, user speech; level from the input mute, end
L2 Thinking / L3 Working awaiting a response; host work running mute, end
L4 Speaking output audio actually playing; level from the output mute, interrupt (only here), end
L5 Talked over barge-in, then back to L1 as L1
L6 Needs your tap pending approval; the card stays tap-only mute, end
L7 Muted manual mute unmute, end
L8 Reconnecting bounded recovery in progress mute, end
L9 Stopped recovery failed; Start again leads to the Start card —
L10 Ended Leave; the composer returns and the end divider appears (#3700) —

Acceptance criteria

  • Uses the ui-kit: voice components and stories for every dictation, Start and live state #3692 components unchanged. No new visual design here.
  • Every state is driven by the existing client state machine. No label claims more than the client knows.
  • L6 never offers a voice approval. The conversation-permissions.ts behaviour is unchanged.
  • L8 and L9 follow the existing recovery policy unchanged.
  • The old overlay, its diagnostic labels and the "?" glyphs are removed.
  • App browser tests with adapter doubles cover every state. Mutations prove that Interrupt is unavailable outside L4 (removed under a held draft as R1 requires; otherwise disabled) and that L6 has no voice-grant affordance.

Scope and exclusions

Integrate the existing client state machine through the signed-off field specification below. createConversationClient is at packages/ui-react/src/voice/conversation-client.ts:95, current ConversationStrip at packages/ui-react/src/components/voice/conversation-strip.tsx:9, and createConversationPermissions at packages/ui-react/src/voice/conversation-permissions.ts:21. Draft #3735 contains implementation work; preserve its ownership and apply the approved corrections there.

Out of scope: new visual design, changed capture/recovery/approval policy, provider/persona Settings, and weakening the wire layout promise. #3700 owns in-chat tool chips/marks; #3701 owns the explicitly nonblocking disabled-focus follow-up.

Approved behavior

V5: mute stops the user's microphone only; brain may finish its current sentence while muted. R1/R2 and the six overlay functions are fully specified by the final sign-off below. The proposed layout keeps the 264px transcript at 320 × 568; no contract reduction is approved. Passing the unchanged layout tests remains required and is not inferred from the drawing.

Source: final design sign-off.

Design sign-off: overlay functions in the tall field (final, R1 and R2 folded in)

3699-live-field.png

Signed off. The brief above stands as drawn, and R1 and R2 match its recommendations. This is the consolidated spec for the integration.

ui-kit components (all reused unchanged): tall VoiceField, VoiceText, VoiceControlButton, UncertainWord, VoiceToolChip, VoiceNotice (L9), and the #3253 inline notice. Stories: #3738 (prerequisite).

Uses the ui-kit components unchanged; no new visual design here. Any visual change goes back to #3738 and its stories.

State table

State label word · meta Body (VoiceText) Controls (accessible names)
L1 + draft Listening · Draft · not sent yet the draft words (UncertainWord where confidence exists) Mute · Discard draft · Send now · End (R1: no Interrupt)
L4 + draft Speaking · Draft · not sent yet the draft words Mute · Interrupt · Discard draft · Send now · End (5 controls, 252px)
L6 Needs your tap · {persona} · {time} "Tap Allow or Deny on the card. Voice can’t approve or refuse with this service." Mute · Interrupt (disabled) · End
Output muted {floor word} · Reply audio off "Brain’s voice was paused after a dropout. Replies still arrive as text." Mute · Recover reply audio · End (Recover stays while muted, even under a draft)
L8 readiness Reconnecting… · mic off "Waiting for voice to be ready. Nothing is heard until then." Mute (disabled) · Interrupt (disabled) · End
Unclear audio, no confidence {floor word} · Draft · not sent yet "I couldn’t hear that clearly. Review before sending." as L1 + draft
L9 mic blocked VoiceNotice "Live conversation stopped" "Microphone is blocked. Allow it in this site’s browser settings, then Start again." Close · Start again

The body shows one message at a time, in this priority: draft → refusal → output muted → client notice.

Chat side

Budget

Nothing renders between the transcript and the 136px field, so the wire.md 264px line holds as written. The existing layout … 320 and permission layout … 320 tests are the acceptance check, unchanged.

Follow-up (not blocking)

Native disabled on VoiceControlButton drops focus when Interrupt disables under focus. This goes to #3701.

No open questions remain. The #3738 stories it waited on are signed off and #3738 is closed.

Current dependency and verification

No active blocker (2026-11-10).

#3692 is delivered through #3718; its historical blocker line is removed. #3738 supplies the approved state stories and baselines. The design/decision handoff on draft #3735 is now historical: its R1/R2 answers and sign-off are folded here, and the draft can resume against that specification after its story prerequisite.

Run the real app browser state tests with local adapter doubles, both themes and 320px/desktop. Preserve conversation.offline.tsx's existing 320px layout and permission-layout assertions, the exact 264px transcript requirement (docs/integration-contract/wire.md:2413-2415), tap-only approvals, manual draft/recovery behavior and named behavioral mutations. Regenerate app baselines in the pinned container after the approved integration and confirm the actual candidate. Source/code predicates alone are not browser proof.

Contract impact

Draft #3735 adds supported display-only capture and levels() information to the conversation client: carry contract, update docs/integration-contract/package-api.md and the API report in the same CONTRACT change, and use a minor changeset. The existing wire layout promise remains unchanged; failure to meet it is not permission to amend it.

Triage 2026-11-08 at main 8752570331ffebdbb9233196412781f6cd71f3d9: Folded the final signed-off specification and later rulings into this body, removed obsolete open questions, and reconciled actual delivered and open prerequisites. Existing ownership, draft work and release attribution are preserved.

2026-11-09: #3738 was signed off and closed. Discard draft now uses a backspace icon (maintainer ruling), so this waits on the kit key from #3762 before it merges. The wiring work can proceed meanwhile.

2026-11-10 triage at main d79eeed0a: #3762 is closed as completed and its output is on main (#3764, squash e8ea534c1, the kit backspace icon key), so its Blocked by line moved here as history. The follow-through recorded on 2026-11-09 for draft #3735 still waits on #3773 (open) for the strict contained checks at 2x.

Activity

  1. added
    type: featA new capability or a change in user-visible behaviour.
    area: ui-reactReact chat/files/voice components, stores, WebSocket transport.
    priority: p2Wanted, not scheduled. Pulled in when a milestone has room.
    needs: decisionBlocked on a maintainer or designer ruling, not on code.
    on Nov 8, 2026
  2. changed the title [-]ui-react: live conversation states L1–L10 on the tall voice field[/-] [+]ui-react: wire live conversation (L1–L10) to the tall voice field[/+] on Nov 8, 2026
  3. added
    blockedWaiting on another issue or an upstream dependency. Say which in the body.
    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.
    and removed
    needs: decisionBlocked on a maintainer or designer ruling, not on code.
    on Nov 8, 2026
  4. schlessera commented on Nov 8, 2026

    @schlessera
    OwnerAuthor

    Decision (maintainer, 2026-11-08): see the rulings on #3690; this issue's body now states the chosen branch. needs: decision removed. Blocked by #3692 (and, for #3698, by #3616/#3617) until its signed-off components exist.

  5. schlessera commented on Nov 8, 2026

    @schlessera
    OwnerAuthor

    Unblocked: #3692 is closed, so scripts/sync-project.ts is removing the blocked label.

  6. removed
    blockedWaiting on another issue or an upstream dependency. Say which in the body.
    on Nov 8, 2026
  7. self-assigned this
    on Nov 8, 2026
  8. schlessera commented on Nov 8, 2026

    @schlessera
    OwnerAuthor

    Claiming this for implementation (claim token wi-3699-a384). Branch: feat/3699-live-voice-field.

    Collision report for the cited voice files: only old draft PRs (#3056, #3059 touch conversation-strip.tsx). Concurrent voice work on the composer mic (#3693/#3694) and chat marks (#3700) is in flight; this PR keeps to the live-conversation surface and will name any shared file it touches.

  9. 25 remaining items

  10. schlessera commented on Nov 9, 2026

    @schlessera
    OwnerAuthor

    Resuming implementation on draft #3735 against the signed-off field specification (claim token wi-3699-t3-4b31). Branch: feat/3699-live-voice-field. Merge waits on #3762 for the backspace key.

  11. schlessera commented on Nov 9, 2026

    @schlessera
    OwnerAuthor

    Decision (maintainer, 2026-11-09): the coverage inline notice names the message count now, as drawn: "Started with the last {n} messages · Details". The wire's historyCoverage gains an additive message-count field to carry it. That is an additive contract change in this issue's PR (#3735), not a follow-up.

  12. added this to the 0.45.0 milestone on Nov 9, 2026
  13. schlessera commented on Nov 9, 2026

    @schlessera
    OwnerAuthor

    Follow-through for #3735 once the #3773 kit fix lands: restore the strict contained check at 2× in control audit … text 2 and notice with review … text 2, and render message bodies as VoiceText children rather than text (R1 of #3773). The steps are in the comment on #3735.

  14. schlessera commented on Nov 10, 2026

    @schlessera
    OwnerAuthor

    Unblocked: #3762 is closed, so scripts/sync-project.ts is removing the blocked label.

  15. removed
    blockedWaiting on another issue or an upstream dependency. Say which in the body.
    on Nov 10, 2026
  16. schlessera commented on Nov 10, 2026

    @schlessera
    OwnerAuthor

    2026-11-10 triage at main d79eeed0a: the Blocked by #3762 line named a closed issue whose output is on main (#3764, squash e8ea534c1, the kit backspace key). I moved it into a dated historical note, and there is no open declared blocker. The body notes that the 2026-11-09 follow-through for draft #3735 still waits on #3773 (open) for the strict contained checks. Labels are unchanged.

  17. schlessera commented on Nov 10, 2026

    @schlessera
    OwnerAuthor

    Delivered by #3735 as squash 47a345b981794fdbd9a48e556f8c49f2a8e260d4 on main, milestone 0.45.0. This also closes #3773.

    • Proof: confirmation run 42853416074 on head 3e67303737f22c8a7e0f35e009c1027d4b8c1720 with base 0129244ad0781c426f7d3f2363c92d8993aefaee. It checked out 218ba183c960ff9b08c933cfe344664a634dea61, tree 38d594d32670fbfa1b3eff41690890ef2d048b41. The squash has that base as its only parent and the same tree.
    • What landed: the tall field with nothing above it. The body shows one message at a time (draft → refusal → reply audio off → client notice), as VoiceText children that the kit never clamps. Send now and Discard draft (backspace) are in the controls row, and Interrupt leaves it while a draft is held, except in L4 (R1). Recover reply audio stays in the row, readiness reads "mic off", and the L9 copy reads "…then Start again". The R2 coverage notice is in the chat and reads "Started with the last {n} messages · Details". It uses the new additive historyCoverage.includedMessages from the maintainer's ruling.
    • Tests: the two unchanged layout tests at 320 pass. The strict containment check passes at 2× (ui-kit: the tall voice field overflows its controls under doubled text with a body #3773). Mutation receipts are in the PR body.
    • Follow-ups: ui-react: integrated accessibility for voice — announcements, focus and keyboard flows #3701 (focus on disabled Interrupt) is unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: ui-reactReact chat/files/voice components, stores, WebSocket transport.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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions