Skip to content

Windows: bash popup window appears at startup due to -i flag in cygpath call #26440

Closed as duplicate

Description

@GanesanBala

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?

On Windows with Git Bash/MSYS2, Claude Code spawns a visible
bash popup window at startup with this command:

/usr/bin/bash --login -i -c cygpath -u 'c:\repos\os'

The -i (interactive) flag causes Windows to open a console window.
Since cygpath doesn't need an interactive shell, removing -i would
fix the popup.

Environment:

  • OS: Windows
  • Shell: MSYS2/Git Bash
  • Claude Code running as VS Code extension

What Should Happen?

On Windows with Git Bash/MSYS2, Claude Code spawns a visible
bash popup window at startup with this command:

/usr/bin/bash --login -i -c cygpath -u 'c:\repos\os'

The -i (interactive) flag causes Windows to open a console window.
Since cygpath doesn't need an interactive shell, removing -i would
fix the popup.

Environment:

  • OS: Windows
  • Shell: MSYS2/Git Bash
  • Claude Code running as VS Code extension

Error Messages/Logs

Steps to Reproduce

Steps to Reproduce
Environment:

OS: Windows 10/11
Claude Code running as VS Code extension
Git Bash / MSYS2 installed (required by Claude Code on Windows)
Working directory: any Windows path (e.g. c:\repos\os)
Steps:

Open VS Code on Windows with Git Bash/MSYS2 installed
Open a project folder with a Windows-style path (e.g. c:\repos\os)
Open Claude Code (via VS Code extension)
Observe a bash terminal popup window appears with title:

/usr/bin/bash --login -i -c cygpath -u 'c:\repos\os'
Window appears briefly then closes (flashes on screen)
Expected behavior:
No visible popup window. Path conversion should run headlessly.

Actual behavior:
A black bash console window flashes on screen every time Claude Code runs a command.

Root cause (suspected):
The -i (interactive) flag in the bash invocation forces Windows to open a console window. Since cygpath only does path conversion and does not require an interactive shell, removing -i should fix the issue.

Workarounds attempted (none effective):

Setting SHELL=pwsh in ~/.claude/settings.json
Setting CLAUDE_CODE_SHELL=pwsh
Setting CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR=1

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.42

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

No response

Activity

  1. github-actions commented on Feb 17, 2026

    @github-actions

    Found 3 possible duplicate issues:

    1. Windows: Console windows flash when running Bash commands (missing windowsHide option) #15572
    2. [BUG] [Windows] Console window flashes on every Bash tool execution #16880
    3. [BUG] windows popup issue #19391

    This issue will be automatically closed as a duplicate in 3 days.

    • If your issue is a duplicate, please close it and 👍 the existing issue instead
    • To prevent auto-closure, add a comment or 👎 this comment

    🤖 Generated with Claude Code

  2. github-actions commented on Feb 21, 2026

    @github-actions

    This issue has been automatically closed as a duplicate of #15572.

    If this is incorrect, please re-open this issue or create a new one.

    🤖 Generated with Claude Code

  3. added
    duplicateThis issue or pull request already exists
    and removed
    bugSomething isn't working
    on Feb 21, 2026
  4. github-actions commented on Mar 1, 2026

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  5. locked as resolved and limited conversation to collaborators on Mar 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions