Voice mode: holding Space sends literal spaces instead of recording audio on macOS terminal (zsh)

Status Open
Maintainer reply None cached
Activity 13 comments · opened Mar 6, 2026

Bug Report

Claude Code version: latest (March 2026 rollout)
OS: macOS Darwin 25.3.0
Shell: zsh
Terminal: macOS Terminal.app

Steps to Reproduce

  1. Enable voice mode with /voice
  2. Confirm "Voice mode enabled. Hold Space to record." message appears
  3. Hold Space to record a voice command

Expected Behavior

Holding Space activates push-to-talk microphone recording.

Actual Behavior

Holding Space sends literal space characters into the terminal instead of triggering audio recording. The transcription pipeline does not activate.

Additional Context

Microphone permissions have been granted in System Settings > Privacy & Security > Microphone for the terminal application. Toggling voice mode off and back on does not resolve the issue.

Related: #30904

View original on GitHub ↗

13 Comments

jopdeklein · 5 months ago

I have the same in vi mode (using fish instead of zsh). Changing the keyboard shortcut doesn't fix the issue either.

digster · 5 months ago

Such a naive implementation, how could no one from their team notice it?

jopdeklein · 5 months ago

It started working for me, even though in VI mode it doesn't work in insert mode.

will-trolinger · 5 months ago

Notice if I repeatedly press space it tries to work.

NH3X · 5 months ago

So, I was able to fix this by going into the Mac keyboard settings and changing key repeat rate to fast and delay until repeat to short.

chaoflow · 5 months ago

I'm seeing this as well with alacritty 0.16.1 and claude 2.1.80 on NixOS.

jsk3342 · 5 months ago

Root cause identified and patched — see #38690 for full analysis.

Two bugs in useVoiceKeybindingHandler:

  1. useEffect dependency array includes setState, causing hold-detection counter to reset every render
  2. stopImmediatePropagation() is a no-op in Ink's EventEmitter — space passes through to chat input

Working patch verified on v2.1.83 (macOS ARM64).

Timendainum · 5 months ago

And I think the fix broke in on linux. Cause it worked yesterday and now it doesn't.

kroudir · 5 months ago

Broken on Mac on the latest update ! (happened just today)

roroos · 5 months ago

Broken on windows as well, worked earlier today.

wjdp · 5 months ago

Broken on Linux with Fish & Ghostty

kevRodrguez · 4 months ago

Not working yet in macos

ranfti · 3 months ago

Still not working in macos