Add voice mute shortcut and recording activity indicators (#43651)

## What changed

- Add `Ctrl+X` to toggle the microphone for the active voice session on the current thread, with a footer hint and guards for modals, popups, and repeated key events.
- Show a recording dot in the terminal title's activity indicator while the microphone is listening, respecting title settings and clearing it when capture stops.
- Replace the microphone and speaker bars with compact Braille meters showing four recent amplitude samples.
- Briefly show `heard` when voice input interrupts speech, when animations are enabled.

## Testing

Add regression tests for shortcut routing, amplitude glyphs, interruption acknowledgment, and terminal title lifecycle, plus updated voice footer snapshots.

GitOrigin-RevId: e1dc0c1744667e646e0040e247c5a0409b416075
This commit is contained in:
Benjamin Carlsson authored and copyberry committed 2026-09-08 02:29:17 +00:00
1 parent 6fee98cc85
commit 4b0d9669cc
13 files changed
+774 -290

No files matched your search

@@ -0,0 +1,13 @@
//! Regressions for bounded state used by realtime voice presentation.
//! Retained history must preserve ordering without growing beyond its limits.
use super::VoiceAmplitudeHistory;
use pretty_assertions::assert_eq;
#[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);
}