[BUG] Cmd+Alt+K shortcut sends context to external iTerm instead of PyCharm's integrated terminal
Environment
- Platform (select one):
- [ ] Anthropic API
- [x] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.98
- Operating System: macOS 15.3
- Terminal: iTerm2, Terminal App
Bug Description
When using the keyboard shortcut Cmd+Alt+K to send context from PyCharm to Claude, the plugin incorrectly routes the path reference to an external iTerm window instead of the integrated terminal within PyCharm, even when Claude is running in PyCharm's built-in terminal.
Steps to Reproduce
- Open PyCharm
- Open the integrated terminal in PyCharm
- Start Claude in the PyCharm terminal
- Also have iTerm open with Claude running
- Use Cmd+Alt+K shortcut to send context
- Observe that the context goes to iTerm instead of PyCharm's terminal
Expected Behavior
The shortcut should prioritize sending context to Claude running in PyCharm's integrated terminal when available.
Actual Behavior
Context is sent to an external iTerm window, even when Claude is actively running in PyCharm's integrated terminal.
Additional Context
PyCharm 2024.2.4 (Professional Edition)
The plugin should have logic to:
First check if Claude is running in PyCharm's integrated terminal
Prioritize the integrated terminal over external terminal applications
Provide user configuration options for terminal preference if needed
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗