[BUG] Spaces dropped when input is generated via synthetic key events

Resolved 💬 3 comments Opened Mar 23, 2026 by jtucholski Closed Mar 27, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Issue
When VoxType types text into Claude Code via synthetic key events (like VoxType), spaces are dropped.

Example output:
"Ijustwanttotestthis"

Expected:
"I just want to test this"

Diagnostics

  • VoxType works correctly in other applications
  • VoxType works correctly in Ghostty when tested with cat
  • Only occurs inside Claude Code
  • VoxType did work inside of Claude Code at one point

Workaround
Switching VoxType to clipboard mode (paste instead of typing) fixes the issue.

What Should Happen?

Cloud code should not strip spaces from my message and I shouldn't have to paste it in.

Error Messages/Logs

n/a

Steps to Reproduce

Environment

  • Arch Linux (Omarchy)
  • Ghostty terminal
  • VoxType speech-to-text
  1. Verify injected typing works in the terminal
  2. Start Claude Code
  3. Dictate the same phrase
  4. Change VoxType to clipboard mode. Notice the phrase will appear correctly.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.81

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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