Cursor
部分 探测链当前对 bash 不友好 Windows 难度 中
IDE 侧有变通(Legacy Terminal Tool),Agent CLI 目前写死 PowerShell、无法配置。
settings.json · IDE 变通(启用旧版终端工具)
{
"terminal.integrated.useWslProfiles": false
} 步骤
- IDE agent:开启 Legacy Terminal Tool 设置;配合上面的 useWslProfiles:false 避免落到 WSL
- Agent CLI:暂无法配置(detectShellType() 在 Windows 上无条件优先 PowerShell)——已上报上游,等它暴露 shell 路径
验证
universal.verifyCmd 观察当前回落到的 shell
回滚
关闭 Legacy Terminal Tool / 删除 useWslProfiles 配置 注意事项
- 上游修复前,CLI 侧命令会以 PowerShell 语法执行,不是 bash 语法错误
来源
agents.md#cursor(上游 issue 线程引用发行代码)- agents.md(探测机制完整文档)↗