[BUG] iTerm2 Option+Click makes Claude Code to hang
Environment
- Platform (select one):
- [ ] Anthropic API
- [X] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other:
- Claude CLI version: 1.0.16 (Claude Code)
- Operating System: macOS 15.5
- Terminal: iTerm2 3.5.14
Bug Description
If you use Option+Click to move the cursor where the mouse pointer is, Claude Code hangs.
Steps to Reproduce
- Type any sentence
- Option+Click anywhere in the sentence
Expected Behavior
Option-click will move the cursor to where the mouse pointer is.
Actual Behavior
Claude Code hangs.
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
I'm experiencing a related issue with Option+Click in iTerm2, though with slightly different behavior:
Environment:
- Claude Code Version: 2.0.47
- Terminal: iTerm2 on macOS (Darwin 25.1.0)
- Installation: via Volta
- Shell: zsh
Actual Behavior: When using Option+Click, instead of the application hanging, the cursor consistently jumps to the beginning of the Claude Code input line rather than to the clicked position. The application remains responsive, but the cursor positioning is broken.
Expected Behavior: Option+Click should move the cursor to the clicked position within the input line (this works correctly in regular terminal applications outside of Claude Code).
Additional Notes:
- This happens consistently, 100% reproducible
- Regular terminal applications in iTerm2 handle Option+Click correctly
- No error messages or console output observed
- The issue makes inline editing quite cumbersome, as you can't quickly jump to a specific position in long commands
This might be a variant of the same underlying mouse event handling issue, but with different symptoms depending on the environment or configuration.
This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.
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.