Voice mode: Space push-to-talk flickers due to key repeat on macOS

Resolved 💬 3 comments Opened Mar 12, 2026 by tayfuncakir Closed Apr 10, 2026

Description

When using /voice mode, holding Space for push-to-talk causes the recording to rapidly start and stop (flicker) instead of recording continuously. It behaves as if Space is being pressed and released repeatedly.

Environment

  • macOS Darwin 24.6.0
  • Key repeat rate: 2 (fast)
  • Initial key repeat delay: 15
  • Claude Code latest version

Steps to Reproduce

  1. Run /voice to enable voice mode
  2. Hold Space to record
  3. Recording indicator flickers on/off rapidly instead of staying active

Expected Behavior

Holding Space should start recording and keep it active until the key is released.

Actual Behavior

Recording starts and stops repeatedly while Space is held down, as if macOS key repeat is triggering multiple keydown/keyup events.

Notes

  • Rebinding voice:pushToTalk to opt+space via keybindings.json did not resolve the issue
  • ApplePressAndHoldEnabled fixes it but affects all keys globally
  • This likely needs to be handled at the app level by ignoring key repeat events for push-to-talk

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗