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
{{ message }}
Repository navigation
ACP: slash-command errors fail the prompt request with an opaque internal error #65715
When a slash command fails during an ACP turn, the whole session/prompt
request fails and the client only sees Internal error: Internal service failure.
The command's real message (usage help, goal-state guidance) never reaches the client.
Cause: CommandExecutionError (thrown by the server for command failures) is not
recognized in packages/cli/src/acp/client.tsclassify(), so the fiber dies and fromUnknown() in packages/cli/src/acp/error.ts renders the opaque string.
Also seen: over ACP a successful /goal <objective> produces no session/update
at all — re-setting a goal replaces it silently. The client has no way to know.
Plugins
None (default goal plugin).
OpenCode version
2.3.2
Steps to reproduce
Run opencode acp and connect from any ACP client
Send /goal (bare, no argument)
Client shows Internal error: Internal service failure instead of Usage: /goal <objective> | pause | resume | clear
With an active goal, sending /goal again fails the same way instead of showing Goal active: ... use /goal clear guidance.
Thanks for the detailed report. I reproduced this on 2.3.2, and it still happens on the latest dev (8c0be71).
The script below runs opencode acp as a minimal ACP client: initialize, then session/new, then a session/prompt with a bare /goal. No model is needed. The prompt request fails with:
{"code":-32603,"message":"Internal error: Internal service failure","data":{"errorName":"CommandExecutionError"}}
The client never gets the command's usage text. I did not test the 'goal already active' case or whether a successful /goal <objective> sends a session/update, because both need a model turn.
Activity
opencodejr commentedon Nov 23, 2026
Thanks for the detailed report. I reproduced this on 2.3.2, and it still happens on the latest
dev(8c0be71).The script below runs
opencode acpas a minimal ACP client:initialize, thensession/new, then asession/promptwith a bare/goal. No model is needed. The prompt request fails with:The client never gets the command's usage text. I did not test the 'goal already active' case or whether a successful
/goal <objective>sends asession/update, because both need a model turn.Reproduction script (acp-goal.mjs)
Run it:
bun acp-goal.mjs