Skip to content

feat: add Windows cmd/ps1 support for opencode execution - #3

Open
IceSoulHanxi wants to merge 3 commits into
ai365vip:masterfrom
IceSoulHanxi:master
Open

IceSoulHanxi wants to merge 3 commits into
ai365vip:masterfrom
IceSoulHanxi:master

Conversation

@IceSoulHanxi

Copy link
Copy Markdown

修复在Windows上无法正确自动启动opencode本地服务端
需要在vscode中设置配置项
配置例子:

{
  "opencodeGui.opencodePath": "D:\\Program Files\\nodejs\\opencode.cmd"
}

关联问题 #2

…tion

- Add path and fs module imports for Windows file handling
- Implement detection and proper execution of .cmd/.bat files using cmd.exe /c
- Implement detection and proper execution of .ps1 files using powershell.exe with bypass policy
- Maintain existing .exe extension handling for other cases
- Improve error logging and diagnostics for Windows platform
- Enhance process spawning with better argument handling
- Add comprehensive logging for debugging purposes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant