Voice mode: Hold Space not detected in Ghostty — key repeat fires instead of hold

Status Fixed / completed
Reported on v2.1.74
Maintainer reply None cached
Activity 4 comments · opened Mar 13, 2026 · closed Mar 13, 2026

Description

/voice mode's "Hold Space to record" doesn't work in Ghostty terminal. Holding Space bar causes repeated space character input ("advancing") instead of triggering voice recording.

Environment

  • Claude Code version: 2.1.74
  • Terminal: Ghostty (macOS)
  • OS: macOS (Darwin 25.2.0)
  • Shell: zsh

Ghostty Config (minimal, no keybinding overrides)

theme = light:Rose Pine Dawn,dark:Rose Pine Moon
font-family = JetBrains Mono
font-size = 13
shell-integration = detect

Steps to Reproduce

  1. Launch Claude Code in Ghostty
  2. Run /voice
  3. See "Voice mode enabled. Hold Space to record."
  4. Hold Space bar
  5. Instead of recording, repeated spaces are inserted / output advances

Expected Behavior

Holding Space should trigger voice recording (detect keydown, start recording, stop on keyup).

Likely Cause

Ghostty sends repeated key events (key repeat) when Space is held, rather than a single sustained keydown event. Claude Code may need to handle key repeat suppression internally, or document terminal compatibility requirements for voice mode.

Workaround Attempted

  • No Space keybinding conflicts in Ghostty config
  • Haven't confirmed if the issue reproduces in other terminals (Terminal.app, iTerm2)

Suggested Fix

  • Debounce/ignore key repeat events for the Space hold detection in voice mode
  • Or document supported terminals for voice mode

View original on GitHub ↗

4 Comments

miqcie · 7 months ago

Update: Reproduced the same behavior in Terminal.app — this is not Ghostty-specific. Hold Space fails to trigger recording in both terminals. Likely a general macOS terminal issue with key hold detection.

miqcie · 7 months ago

Closing — macOS Dictation (double-tap Fn) works as a viable workaround for voice input in Claude Code terminals.

github-actions[bot] · 7 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/31341
  2. https://github.com/anthropics/claude-code/issues/33607
  3. https://github.com/anthropics/claude-code/issues/33737

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] · 6 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.