[BUG] Voice tap mode: hard-coded 15s silence and 120s max-duration timers end the recording AND auto-submit the partial prompt, with no way to configure them
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report
- [x] I am using the latest version of Claude Code
What's Wrong?
With "voice": { "mode": "tap" }, a dictation session can end by itself and then submit the half-finished prompt to the model, with no warning and no way to turn it off.
Two hard-coded timers are armed the moment a tap-mode recording starts:
if(o==="tap"){
if(m==="idle") s("[voice] toggle: starting recording"), this.#g=!0, this.#I(), this.#$(), this.#q();
else if(m==="recording") s("[voice] toggle: finishing recording"), this.#m();
return
}
#$()— a 15 second silence timeout (jn = 15000), logging[voice] Toggle silence timeout — auto-finishing#q()— a 120 second max-duration cap (zn = 120000), logging[voice] Toggle max-duration cap — auto-finishing
Both call #m() (finishRecording). The damaging part is what happens next — the transcript handler auto-submits in tap mode:
let I = (A === "tap" || w) && No(a) >= 3;
if (I) r.current?.submit(L, !0);
So the sequence is: you pause for 16 seconds to think, or you talk for two minutes straight; the recording silently ends; the partial transcript is inserted; and because it has 3 or more words it is sent to the model immediately. You lose the rest of what you were going to say, and you've now spent a turn on a truncated prompt.
Neither timer is configurable. The settings schema only exposes:
voice: { enabled?, mode?: "hold"|"tap", autoSubmit? }
and the only voice-related env vars in the binary are CLAUDE_CODE_REMOTE and CLAUDE_CODE_VOICE_FORWARD_INTERIMS_TYPED. Neither affects the timers. The only escape is to abandon tap mode for hold — where neither timer is armed, since both are guarded on the tap-mode flag #g — but that means physically holding a key for the whole utterance.
There is also no warning that it's about to happen. In tap mode the indicator just reads REC · tap to send the entire time, including the moment before it gives up.
(Possibly related but a different surface: #77823 describes dictation silently stopping in the chat-input mic button. This report is specifically about the CLI's tap mode and the auto-submit that follows the timeout.)
What Should Happen?
Primarily: a timeout should never submit. If the client decides on its own to end the recording, the transcript should be left in the composer for the user to finish, edit, or discard. Auto-submit should require the user's explicit tap.
Secondarily, the timers should be tunable and the 15s default is short for anyone composing a thought out loud.
Error Messages/Logs
No error is shown to the user. In the debug log:
[voice] Toggle silence timeout — auto-finishing
[voice] Toggle max-duration cap — auto-finishing
Steps to Reproduce
- Set
"voice": { "enabled": true, "mode": "tap" }. - Tap to start dictating. Say a sentence or two.
- Pause for more than 15 seconds while you think about the next part (or, alternatively, keep talking past the 2 minute mark).
- Recording ends on its own and the partial prompt is submitted to the model without you pressing anything.
Suggested fix
- Decouple the timeout from submission. Gate the auto-submit on an explicit user-initiated finish, not on
mode === "tap"alone — e.g. pass the finish reason through#m()and skipsubmit()when the reason issilence-timeoutormax-duration. This is the small change that removes the data loss. - Make the timers configurable, e.g.
voice.tapSilenceTimeoutMsandvoice.tapMaxDurationMs, with0/nullmeaning "no cap". - Raise the silence default. 15s is well inside the range of a normal thinking pause when you're dictating a complex prompt.
- Show it coming. A countdown or a colour change on the
RECindicator in the last few seconds would make the cutoff predictable instead of surprising.
Claude Model
Opus
Is this a regression?
I don't know
Claude Code Version
2.1.245
Platform
Anthropic API
Operating System
macOS 26.1 (25B78), Apple Silicon
+1, hit this today on macOS (Claude Code 2.1.289, Warp, tap mode). I can confirm both timers are still hard-coded in 2.1.289 (15s silence, 120s max duration), and that the cutoff still auto-submits.
My case: I was dictating a long prompt, describing a problem in one go, and the message went out by itself mid-sentence. I never tapped to send. Everything I said after the cutoff was lost, and the model started working on half a prompt.
Two minutes is not a long time for spoken input. Explaining a feature or a bug out loud, with context, constraints and edge cases, easily takes two or three minutes, and that is exactly the kind of prompt where dictation is most useful. Even 30 extra seconds of talking past the cap should not cost you the whole message.
What would fix it for me, in order of importance:
- A timeout or cap should never submit. Leave the transcript in the prompt and let me tap to send.
- Make the cap configurable (or remove it), and raise the 15s silence default. Pausing to think is normal when dictating.
Until the timers are configurable: Cadence, a free Mac app I make (Apple Silicon, no account), never sends anything for you. Hold Option to dictate for as long as you hold it, or click its mic button for a continuous recording you stop yourself. Either way the text is pasted into the Claude Code prompt and waits for you to press Enter. https://cadencevoice.ai
Please take this seriously, my workflow so fas has been dictating on ChatGPT and copy pasting to claude.
The reasons I need ChatGPT (or hopefully Claude) dictation are:
- ChatGPT offers a pause/resume feature where I can collect my thoughts
- Both ChatGPT and Claude understand my local language (Greek) as well as English terms seamlessly, something that native MacOS dictation drops the ball on.
- On ChatGPT I may be dictating for several minutes with long pauses and it won't auto stop my dictation listing
+1 on this, it's extremely frustrating, even if it stopped and didn't auto submit it would be better. 2 minutes is not enough when you are on a thought train and you naturally pause to think and it submits.
This was fixed in Claude Code 2.1.332, so we're closing this issue. If you disagree, let us know here and we can re-open it. Thanks for reporting!