[BUG] Spacebar intermittently types literal text 'space' instead of space character
Resolved 💬 2 comments Opened Jan 8, 2026 by ferdousbhai Closed Jan 9, 2026
Description
When typing in the Claude Code input textbox, pressing the spacebar sometimes inserts the literal text space instead of an actual space character. This behavior is intermittent and not consistently reproducible.
Environment
- Claude Code version: 2.1.1
- Terminal: Ghostty 1.2.3-arch2
- OS: Arch Linux (kernel 6.18.3-arch1-1)
- Desktop: GTK 4.20.3 / libadwaita 1.8.3
Steps to Reproduce
- Open Claude Code in Ghostty terminal
- Type normally in the input textbox
- Intermittently, pressing spacebar will insert literal text
spaceinstead of a space character
Expected Behavior
Pressing spacebar should always insert a space character.
Actual Behavior
Spacebar sometimes inserts the literal text space instead of a space character. The issue is intermittent - sometimes it works correctly, sometimes it doesn't.
Additional Context
/terminal-setupreports that Shift+Enter is natively supported in Ghostty with no configuration needed- No specific pattern has been identified for when this occurs
- This appears to be similar in nature to issue #9321 where Shift+Enter outputs "OM" characters instead of performing the expected action
Possibly Related Issues
- #9321 (Shift+Enter outputs literal "OM" text)
- #5196 (Keyboard shortcuts output raw escape codes)
- #6094 (Unicode character input corruption)
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗