Skip to content

Cascade commands fail when using Git Bash as default terminal profile #279

@nstayte

Description

@nstayte

If I change the default terminal profile to Git Bash then all CLI commands the agent runs fail.

The error message: invalid_argument: Command syntax error: Command failed: C:\Program Files\Git\bin\bash.exe -n -c 'pnpm vitest' 'C:\Program' is not recognized as an internal or external command, operable program or batch file. . The command was not executed due to syntax errors. Please fix the syntax and try again.

If I use PowerShell they work. But this is not my preferred terminal when I need to use the terminal so it's quite annoying.

It's not just on the latest version this has been happening, but has been happening for a long time.

Windsurf Version: 1.13.3
Windsurf Extension Version: 1.48.2
Windsurf Commit: f5d6162bf21a6caf7ad124c0ddf9cb1089034608
VSCode OSS Version: 1.106.0 (user setup)
Commit: f5d6162bf21a6caf7ad124c0ddf9cb1089034608
Date: 2025-12-24T12:30:26.642Z
Electron: 37.7.0
ElectronBuildId: undefined
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26100

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions