[BUG] Claude CLI leaves VSCode terminal open after code diff confirmation

Resolved 💬 2 comments Opened Nov 3, 2025 by TouchSeyha Closed Nov 3, 2025

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

When Claude CLI finishes generating code and displays the code comparison view for the user to review or edit, the VS Code terminal repeatedly reopens. Even if the user manually collapses or closes the terminal, it automatically opens again during the next code generation or comparison step.

What Should Happen?

Termnial should not repeatedly reopens once user collapse.

Error Messages/Logs

Steps to Reproduce

  1. Open a project in VS Code where Claude CLI is set up.
  2. Run a Claude CLI code generation command.
  3. Wait for Claude CLI to finish generating the code and display the code comparison view (where you can review or accept the changes).
  4. Manually collapse or close the VS Code terminal after the code comparison is displayed.
  5. Trigger another code generation or edit request using Claude CLI-- terminal will reopened.

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.0.31

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

_No response_

View original on GitHub ↗

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