You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
opencode acp (both v1.16.2 and beta 0.0.0-beta-202606060810) returns -32603 Internal error: OpenCode service failure for session/new requests on Linux (WSL/Arch Linux). The initialize handshake works correctly, but any session/new call fails with service: "directory" in the error data.
The same project directory works perfectly in opencode run mode — the bug is specific to the ACP codepath.
The underlying error is swallowed by fromUnknownError() in acp/error.ts — no stack trace or root cause visible even with --log-level DEBUG
The loadDirectorySnapshot() function makes 5 parallel SDK calls (config.providers, app.agents, command.list, app.skills, config.get) — any of these could be failing silently
Description
opencode acp(both v1.16.2 and beta 0.0.0-beta-202606060810) returns-32603 Internal error: OpenCode service failureforsession/newrequests on Linux (WSL/Arch Linux). Theinitializehandshake works correctly, but anysession/newcall fails withservice: "directory"in the error data.The same project directory works perfectly in
opencode runmode — the bug is specific to the ACP codepath.Environment
/root/workspace/dev/praxis(has validopencode.jsonwith deepseek + xiaomi-token-plan-cn providers)Steps to Reproduce
Expected Behavior
session/newshould return a session ID.Actual Behavior
Additional Context
opencode runin the same project directory works correctly (providers load: deepseek, xiaomi-token-plan-cn, opencode)OPENCODE_SERVER_PASSWORDenvironment variable set (session/new returns "Internal error" on Windows via ACP #17285 fix does not help)fromUnknownError()inacp/error.ts— no stack trace or root cause visible even with--log-level DEBUGloadDirectorySnapshot()function makes 5 parallel SDK calls (config.providers,app.agents,command.list,app.skills,config.get) — any of these could be failing silentlyRelated