Description
Description
When using acpx (ACP client) to connect to opencode via ACP protocol on Windows, the session/new method returns "Internal error".
Environment
- OS: Windows 11
- opencode version: 1.2.25
- acpx version: 0.3.0
- Node.js: v22.17.0
Steps to Reproduce
- Install opencode:
npm install -g opencode-ai
- Install acpx:
npm install -g acpx
- Run:
acpx --format json opencode exec "test"
Expected Behavior
session/new should succeed and return a session ID.
Actual Behavior
The initialize succeeds, but session/new fails with "Internal error".
Additional Context
- Authentication is configured (zhipuai and lenovo providers)
- opencode works normally in interactive mode
- The issue only occurs with ACP mode (
opencode acp)
Plugins
No response
OpenCode version
No response
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
Description
Description
When using acpx (ACP client) to connect to opencode via ACP protocol on Windows, the
session/newmethod returns "Internal error".Environment
Steps to Reproduce
npm install -g opencode-ainpm install -g acpxacpx --format json opencode exec "test"Expected Behavior
session/newshould succeed and return a session ID.Actual Behavior
The
initializesucceeds, butsession/newfails with "Internal error".Additional Context
opencode acp)Plugins
No response
OpenCode version
No response
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response