Where does the bug appear (feature/product)?
AI Agent → Agent Terminal / Background execution
Describe the Bug
On Windows, the AI Agent’s terminal always executes in PowerShell. This happens even though Git Bash is set as the default terminal profile and opens correctly for normal terminals. As a result, Linux-style commands (e.g., touch, bash-specific scripting) fail unless I manually convert them to PowerShell.
Expected Behavior
When Git Bash is selected as the default profile, new integrated terminals should launch bash.exe (Git Bash) by default (Agent Excute on GitBash).
Operating System
Windows 11 (Build 22000)
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.7.44 (system setup)
VSCode Version: 1.99.3
Commit: 9d178a4■■■89981b62546448bb32920a8219a5d0
Date: 2025-10-10T15:43:37.500Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.22000
"terminal.integrated.defaultProfile.windows": "Git Bash",
"terminal.integrated.profiles.windows": {
"Git Bash": {
"path": "C:\\Program Files\\Git\\bin\\bash.exe",
"icon": "terminal-bash"
}
}
Additional Information
-
Normal integrated terminals respect Git Bash as default; only the Agent’s execution environment ignores it.
-
This looks like the Agent is using VS Code’s automation terminal instead of the default profile. If so, it might need to honor
terminal.integrated.automationProfile.windows.
How to config Git Bash for AI Agent terminal?