Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
When I open a workspace from a Windows path (e.g. C:\Develop\...) in Cursor, the Agent runs shell commands in WSL (Linux). It does not use my configured default integrated terminal profile on Windows, which is Git Bash.
Because of that, tools I installed for Windows (e.g. mvn, node, java) are on the Windows / Git Bash PATH, but the Agent’s shell is a Linux environment where those commands are often missing (command not found). This makes automated builds and scripts unreliable even though the same commands work in the terminal I open manually in Cursor.
Expected behavior
When the workspace is opened on Windows (local folder, not “Remote - WSL”), I expect the Agent to execute commands in an environment consistent with my Terminal › Integrated: Default Profile (Windows) setting (Git Bash), or at least to use the same PATH and toolchain as that profile, so mvn, node, java, etc. resolve the same way as in my interactive terminal.
Actual behavior
The Agent’s shell reports WSL2 Linux (uname shows microsoft-standard-WSL2), with java not found and JAVA_HOME unset, while my interactive Git Bash session on the same machine shows Java 21 and normal command resolution.
I also disabled the Remote - WSL extension and retested; the Agent environment remained WSL (no change).
Environment
Version: 3.0.16 (user setup)
VSCode Version: 1.105.1
Commit: 475871d112608994deb2e3065dfb7c6b0baa0c50
Date: 2026-04-09T05:33:51.767Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.22631
- Cursor: Windows desktop app, workspace opened via local Windows path (not intentionally using Remote-WSL for this folder)
- User terminal (works): Git Bash —
MINGW64_NT-10.0-... - Agent terminal (problem): WSL2 —
Linux ... microsoft-standard-WSL2 - Integrated terminal default (Windows): Git Bash
Impact
Any Agent workflow that runs mvn, node, npm, java, or other Windows-installed CLIs fails with “not found” or wrong toolchain, even though manual runs in Git Bash succeed.
Request
Please clarify whether this is by design and, if so, document how to force Agent commands to use the Windows default terminal profile (or Windows PATH). If it is a bug, please align Agent execution with the user’s Windows integrated terminal default when the workspace is not a Remote-WSL window.
Debugging commands and results
1. In my interactive Git Bash terminal (user terminal — OK):
java -version
Example output:
openjdk version "21.0.8" 2025-07-15 LTS
OpenJDK Runtime Environment Temurin-21.0.8+9 (build 21.0.8+9-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.8+9 (build 21.0.8+9-LTS, mixed mode, sharing)
uname -a
Example output:
MINGW64_NT-10.0-22631 DESKTOP-... 3.3.5-341.x86_64 ... x86_64 Msys
2. In the environment where the Agent runs shell commands (problem):
echo "SHELL=$SHELL"
uname -a
which java 2>/dev/null || command -v java || true
java -version 2>&1 || true
echo "JAVA_HOME=${JAVA_HOME:-<unset>}"
Example output:
SHELL=/bin/zsh
Linux DESKTOP-... 6.6.87.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC ... x86_64 GNU/Linux
/bin/bash: line 1: java: command not found
JAVA_HOME=<unset>
3. After disabling the Remote - WSL extension, the same Agent-side probe still showed WSL2 and no java.
Steps to Reproduce
same
Screenshots / Screen Recordings
Operating System
Windows 10/11
Version Information
Version: 3.0.16 (user setup)
VSCode Version: 1.105.1
Commit: 475871d112608994deb2e3065dfb7c6b0baa0c50
Date: 2026-04-09T05:33:51.767Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.22631
Does this stop you from using Cursor
Yes - Cursor is unusable





