claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] iTerm2 Option+Click makes Claude Code to hang

Open marlondemoya opened this issue 1 year ago • 4 comments

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

  1. Type any sentence
  2. 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.

marlondemoya avatar Jun 06 '25 04:06 marlondemoya

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.

github-actions[bot] avatar Oct 10 '25 10:10 github-actions[bot]

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.

devin-lemcke avatar Nov 20 '25 14:11 devin-lemcke

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.

github-actions[bot] avatar Dec 21 '25 10:12 github-actions[bot]

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.

github-actions[bot] avatar Dec 28 '25 14:12 github-actions[bot]