← Agent directory

Cursor

Partial Detection chain currently bash-unfriendly Windows Difficulty Medium

The IDE side has a workaround (Legacy Terminal Tool); the Agent CLI currently hard-codes PowerShell and cannot be configured.

settings.json · IDE workaround (enable the legacy terminal tool)
{
  "terminal.integrated.useWslProfiles": false
}

Steps

  1. IDE agent: turn on the Legacy Terminal Tool setting; pair it with the useWslProfiles:false above so it does not fall into WSL
  2. Agent CLI: not configurable for now (detectShellType() unconditionally prefers PowerShell on Windows) — reported upstream, waiting for it to expose a shell path

Verify

echo "SHELL=$SHELL"; uname -s — observe which shell it actually falls back to

Rollback

Turn off Legacy Terminal Tool / delete the useWslProfiles setting

Notes & pitfalls

Sources

Chinese edition of this page: /agents/cursor/