[BUG] Claude Code crashes when receiving rapid text injection from ydotool
Resolved 💬 3 comments Opened Jan 6, 2026 by ArijitDeb Closed Jan 10, 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?
Actual Behavior
Claude Code crashes when receiving rapid keyboard input from ydotool.
What Should Happen?
Expected Behavior
Claude Code should handle rapid text injection gracefully, similar to how Gemini CLI handles it without crashing.
Error Messages/Logs
Steps to Reproduce
Environment
- OS: Fedora Linux (Wayland)
- Kernel: 6.17.12-300.fc43.x86_64
- ydotool flags: -d 1 (1ms delay between keys), -H 1 (1ms hold time)
Use Case
I use a voice-to-text tool that transcribes speech and injects the text into the active window using ydotool. This workflow works with other terminal applications but not with Claude Code.
Claude Model
Sonnet (default)
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.0.76 (Claude Code)
Platform
Anthropic API
Operating System
Other Linux
Terminal/Shell
Other
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗