cmux NEXT: the left-out voice recording notice no longer claims two minutes
Merged
TE
16d ago+54+54+01234567890123456789-28-28-01234567890123456789
Summary
Follow-up to the review nit on #21796. App.tsx showed dictation.recordingTooLong ("ran past 2 minutes") both when the host stops keeping audio at two minutes and when audioAttachment refuses a clip past the 4 MB byte cap. When the byte cap is what tripped, that notice is wrong.
recordingLeftOutNotice(reason)inattachments.tsis now the one place that picks the notice. It covers the host's reasons (tooLong,narrowband) and the byte cap (tooLarge), and App.tsx uses it on both paths.- The notice now reads "The voice recording is too long to attach, so the prompt gets the transcript only." That is true for both caps. All 21 locales are updated.
Testing
test/dictation-audio.test.tsxdrives the byte-cap path. An over-cap clip gets no attachment, its notice (via the realtranslate) is the new text, and it matches the two-minute notice; narrowband keeps its own. The test was committed red before the fix. The 8 tests pass (run on Huge Blue).
Changelog
Fixed: The notice for a voice recording left out of a prompt no longer says it ran past 2 minutes when the size cap kept it out
🤖 Generated with Claude Code
No capture: webview-only text change to a notice string; no native UI changes.
Adopted by orphan-sweep (base merged in at 64134e4c8a4).
Agent session: cosmic-gray