Skip to content

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

@TouchSeyha

Description

@TouchSeyha

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:idebugSomething isn't workinghas reproHas detailed reproduction stepsplatform:windowsIssue specifically occurs on Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions