[BUG] After prompt response, keyboard focus no longer in CLI, jumps to source editor in IntelliJ

Resolved 💬 11 comments Opened Jun 6, 2025 by johnw3d Closed Jan 9, 2026

Environment

  • Platform (select one):
  • [x ] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: v1.0.16
  • Operating System: MacOS 15.3.1 (24D70)
  • Terminal: IntelliJ built-in terminal

Bug Description

After entering a CLI prompt and receiving Claude response, keyboard focus is now in the current source, NOT the CLI, so typing next prompt overwrites source code so I have to repeatedly fix that and click back to the terminal

Steps to Reproduce

  1. ensure source file open in IntelliJ IDE
  2. open Claude Code in IntelliJ terminal
  3. issue prompt in the CLI
  4. after response is generated, note that keyboard focus now back in source file, NOT the CLI

Expected Behavior

Keyboard focus to stay in the CLI for the next prompt

Actual Behavior

Keyboard focus jumps to current source file in IntelliJ source editor

Additional Context

<!-- Add any other context about the problem here, such as screenshots, logs, etc. -->

View original on GitHub ↗

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