Move voice controls into a dedicated composer strip (#43683)

## Why

Voice controls replaced the normal footer and could be truncated at narrow widths. Give them dedicated space while keeping the status line visible.

## What changed

- Render voice status, `ctrl+x` mute/unmute, and `/voice stop` above the draft, with separate microphone and Codex audio history meters.
- Keep control positions stable across mute states, prioritize stop at narrow widths, and hide the strip when vertical space is needed for the draft and cursor.
- Reflect actual microphone capture in the recording indicator, respect reduced motion, and allow muting during connection once the audio handle is available.
- Preserve speaker history when muting the microphone and clear speaker samples when playback is suppressed.

## Testing

Add layout and snapshot regressions for voice states, narrow and clipped composers, recording colors, independent audio histories, and status-line visibility. Extend coverage for audio intensity scaling and spoken transcript rendering.

GitOrigin-RevId: 9deb432654f4328cc8a577b8896eee088a0a1d5e
This commit is contained in:
Benjamin Carlsson authored and copyberry committed 2026-09-08 03:39:58 +00:00
1 parent 3caf9f9586
commit 98c7c0415b
13 files changed
+703 -103

No files matched your search

@@ -212,11 +212,3 @@ fn settled_split_flap_stops_scheduling_animation_frames() {
);
assert!(requests.try_recv().is_err());
}
#[test]
fn voice_meter_shows_four_real_amplitude_samples_in_two_braille_cells() {
let samples = VoiceAmplitudeHistory([1, 4, 2, 5]);
insta::assert_snapshot!(samples.glyphs(), @"⣸⣼");
assert_eq!(samples.peak(), 5);
assert_eq!(VoiceAmplitudeHistory::default().peak(), 0);
}