[BUG] Cmd+Alt+K shortcut sends context to external iTerm instead of PyCharm's integrated terminal

Resolved 💬 3 comments Opened Aug 31, 2025 by nirayalon Closed Jan 5, 2026

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

  1. Open PyCharm
  2. Open the integrated terminal in PyCharm
  3. Start Claude in the PyCharm terminal
  4. Also have iTerm open with Claude running
  5. Use Cmd+Alt+K shortcut to send context
  6. 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

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗