Skip to content

ui-react: wire the composer mic — tap to dictate, hold to start a live conversation #3693

Closed

Description

@schlessera

Context

Part of #3690. Prerequisite: #3692, which supplies the MicButton with its hold ring and hint, with signed-off stories. This issue is integration only: it connects the real pointer, keyboard and assistive-technology input to the existing component, and replaces the separate live-conversation entry control.

Behaviour

  • Tap (released before the hold threshold): start dictation, handing over to ui-react: wire dictation (D1–D8) to the voice field components #3694.
  • Hold: drive the component's progress prop from elapsed time. When it completes, fire a light haptic where supported and open the Start card (ui-react: wire the Start card (S1–S5) — service, persona and recovery #3698).
    • Releasing early counts as a tap.
    • Moving the pointer off the mic cancels the hold.
  • Nothing is captured during the hold. No microphone, provider or history work starts until the user picks dictation or presses Start.
  • Keyboard: Enter or Space dictates; Shift+Enter opens Start.
  • Screen readers: a "Talk live…" action.
  • Live conversation not available: the ring still fills; on completion the S4 notice opens instead of Start (V4).

Acceptance criteria

Decisions (maintainer, 2026-11-08)

  • V1: the hold threshold is 0.6 s.
  • V4: when live conversation isn't available, the hold ring still fills and then shows the S4 notice instead of the Start card. A tap still dictates.

Contract impact

None.

2026-11-08: open decisions replaced by the maintainer's rulings; the prerequisite is now declared as a canonical dependency line.

2026-11-08 (later): #3692 is delivered. Wiring the hold onto the real composer needs the kit Composer to host MicButton, a composition no signed-off story draws, so this issue is now blocked by #3727 (design, then an additive kit prop).

2026-11-10 triage at main d79eeed0a: no active blocker. #3727 is closed as completed and its output is on main (#3742, squash fb999b8ba, the Composer micControl slot), so its Blocked by line moved here as history.

Activity

  1. added
    type: feat
    area: ui-react
    priority: p2
    needs: decision
    on Nov 8, 2026
  2. changed the title [-]ui-react: one composer mic — tap to dictate, hold to start a live conversation[/-] [+]ui-react: wire the composer mic — tap to dictate, hold to start a live conversation[/+] on Nov 8, 2026
  3. added
    blocked
    agent-ready
    and removed
    needs: decision
    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
    blocked
    on Nov 8, 2026
  7. self-assigned this
    on Nov 8, 2026
  8. schlessera commented on Nov 8, 2026

    @schlessera
    OwnerAuthor

    Claimed (token wi-3693-c7e1). Intended branch: feat/3693-composer-mic-gesture.

    Collision note: draft PRs #3717 and #3724 also edit the dictation sources and the composer (use-dictation.ts, dictation-sheet.tsx, composer.tsx). This change keeps to the composer mic entry and the live entry control; #3694 follows for the dictation surface.

  9. added
    blocked
    on Nov 8, 2026
  10. schlessera commented on Nov 8, 2026

    @schlessera
    OwnerAuthor

    Handoff (claim wi-3693-c7e1 released): blocked by #3727.

    What is missing: this issue requires the #3692 MicButton unchanged and no new visual design. The app's resting composer is the kit Composer (packages/ui-react/src/components/chat/composer-view.tsx:279), which draws its own 28px mic IconButton (packages/ui-kit/src/chrome/Composer.tsx:332) and takes no caller-supplied control in that position. MicButton is a 44px raised control whose hint and "Talk live…" action float above it (packages/ui-kit/src/tokens.css:2832-2843). Every signed-off story places it in a bare VoiceField without the attach menu, editable textarea, provider chip, hint line or Send (packages/ui-kit/stories/voice/_voice.tsx:78, :143). So wiring the hold needs both a kit change and a composition nobody has signed off. Both are outside this integration issue.

    Evidence: the code paths above. No branch or code was produced.

    Next action: #3727 (needs: design) records the ruling and then adds the additive kit prop with stories and baselines.

    To resume: once #3727 merges, this issue's scope is unchanged. Tap and hold split at 0.6 s on the composer's MicButton, Shift+Enter and "Talk live…" open the existing Start flow, the S4 notice appears when live is unavailable, and the "Live conversation" row in the attach menu (composer-view.tsx:192) and its naming (composer-view.tsx:186-189, D37 note in docs/decisions/design-kit/navigation.md) are removed.

  11. removed their assignment
    on Nov 8, 2026
  12. removed
    blocked
    on Nov 9, 2026
  13. schlessera commented on Nov 9, 2026

    @schlessera
    OwnerAuthor

    Unblocked: its only declared blocker, #3727, closed when #3742 merged (fb999b8). Composer now has the micControl slot this issue wires.

  14. self-assigned this
    on Nov 9, 2026
  15. schlessera commented on Nov 9, 2026

    @schlessera
    OwnerAuthor

    Claimed (token wi-3693-d41a). Intended branch: feat/3693-composer-mic-gesture, from fb999b8.

    Collision note: draft PR #3735 (#3699) also edits the live-conversation surface and composer.tsx. This change keeps to the composer mic gesture and removes the old live entry row; the tall voice field stays with #3735.

  16. schlessera commented on Nov 9, 2026

    @schlessera
    OwnerAuthor

    Implementation in #3761 (draft, head 373180a7). Hosted heavy feedback is running before I request candidate confirmation.

    Scope notes, recorded on the PR:

    • Dictating, a recording in progress, an undecided mic, and a host with neither dictation nor live conversation keep the kit's own mic. A hold has nothing to offer in those states, so this needs no new design.
    • MicButton has no tooltip, so the fine-pointer "Dictate · " tooltip no longer paints on the resting mic. The accessible name keeps the service.
  17. added this to the 0.45.0 milestone on Nov 9, 2026
  18. schlessera commented on Nov 10, 2026

    @schlessera
    OwnerAuthor

    2026-11-10 triage at main d79eeed0a: its only Blocked by line named #3727, which is closed as completed with its output on main (#3742, squash fb999b8ba, the Composer micControl slot). I moved that line into a dated historical note in the body. There is no open blocker, so there is no blocked label. Labels are unchanged.

  19. schlessera commented on Nov 10, 2026

    @schlessera
    OwnerAuthor

    Delivered in #3761, squashed to main as b6c330a60e557a36c9b164c5244e7cb4e5aa0491 (milestone 0.45.0).

    What changed:

    • The mic: the composer's resting mic is the kit MicButton in the micControl slot.
      • A tap, Enter or Space dictates.
      • A 0.6 s hold, Shift+Enter or "Talk live…" opens the existing Start disclosure. Where live conversation isn't available, the S4 notice appears instead.
      • An early release is a tap, and leaving the mic cancels the hold.
    • Nothing is captured during a hold. composer-mic.pointer.tsx proves this on the rail-fine, rail-coarse and rail-mixed projects with real mouse and touch input, instrumenting getUserMedia, every request, socket and frame. It covers a hold, a cancelled hold and S4.
    • Offline: the "Record on this device" mic has no hold (M1).
    • Removed: the attach menu's live-conversation row and its naming, with their tests. The D37 note records the move.
    • Kit fix found by candidate proof: a Composer whose micControl comes and goes now updates its textarea margin with one shorthand, with the same pixels. Before, it lost its bottom margin and React warned.

    Kept by design, recorded on the PR: dictating, a recording in progress, an undecided mic, and a host with neither dictation nor live conversation all keep the kit's own mic. The fine-pointer "Dictate · " tooltip no longer paints on the resting mic; the accessible name still carries the service.

    #3694 can build on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-readyarea: ui-reactpriority: p2type: feat

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions