Repository navigation
fix: windows下执行spawn报错 - #517
shijie-todd wants to merge 2 commits into
Conversation
Review Summary by QodoFix Windows spawn execution error for Claude CLI
WalkthroughsDescription• Fix Windows spawn execution error for Claude CLI • Normalize CLI path to use .cmd wrapper on Windows • Add shell option for .cmd/.bat/.ps1 execution • Improve path parsing with cross-platform line ending support Diagramflowchart LR
A["Windows where claude"] -->|finds| B["claude file without extension"]
B -->|normalizeClaudeCliPathForWindowsSpawn| C["claude.cmd wrapper"]
C -->|cliPathNeedsShellSpawnOnWindows| D["spawn with shell: true"]
D -->|success| E["CLI execution works"]
File Changes1. packages/core/src/server/ai-provider-claude.ts
|
Code Review by Qodo
1.
|
|
ai feature is on beta, I'll fix it in future |
name: windows下执行spawn报错
about: windows下执行spawn报错
插件版本
2.0.0-beta.6
Bug 类型
Bug 描述
使用AI Assistant功能,使用的是claude code 的cli模式,在对话框发送信息以后,控制台报错如下,原因是windows下执行where claude 找到的 claude文件不是spawn可以执行的文件,应该执行claude.cmd
系统
你使用的打包器及版本
你使用的 web 框架
自检信息
[√ ] 你的浏览器、IDE、代码是否在一台机器上(非远程开发机或者云开发机情况)
[√ ] 浏览器控制台是否有打印组合按键提示信息

[√ ] 页面 DOM 是否有注入

data-insp-path属性