opencode
opencode copied to clipboard
Slash commands through ACP doesn't work
Description
In the docs (https://opencode.ai/docs/acp/#support) it is mentioned that custom tools and slash commands should be available which doesn't seem to be:
OpenCode version
1.0.20
Steps to reproduce
Set ACP in zed, and start new thread
Screenshot and/or share link
No response
Operating System
Windows
Terminal
wt
This issue might be a duplicate of existing issues. Please check:
- #3730: Both involve ACP functionality issues with Zed - while this focuses on slash commands not appearing, that issue deals with connection errors that might be preventing the same functionality
- #3792: Missing /details command in opencode v1 - deals with missing slash commands in v1.x versions
Feel free to ignore if none of these address your specific case.
really none of them work? If you do a “/“ nothing comes up?
There isnt a /help btw there are only slash commands that trigger actions
Yes, none of them as zed reported Available commands: none
I tried /init now, just in case, but same output
Huh weird, the only people i heard say this use windows....
I can't replicate at all so im curious what causes it, will need to investigate more
Yes I'm on Windows. ACP logs are empty and the only error printed in main log is:
[agent_client_protocol::rpc] failed to handle notification: Error { code: -32603, message: "Internal error", data: Some(String("Failed to get session")) }
lovely, welp ill take a look
Do the other coding agents like claude or gemini work for u? In zed acp? Maybe just try the "/" and see if a slash command option bar pops up
Yes, Claude works fine:
well ig im just doing something wrong there then, Ill take a look, that's helpful
I also tried setting zed to use opencode from WSL, with same result:
"opencode": {
"command": "wsl",
"args": ["--shell-type", "login", "--", "opencode", "acp"]
}
So it's some kind of a problem between opencode and windows version of zed, instead just opencode windows version it seems...
I think I figured out what it is, do you have an MCP server configured in your zed editor, there was a timing issue, next release will fix it
should be fixed by https://github.com/sst/opencode/commit/1e0596bc46fcd130257174e6691c74484391f905
yep thats expected lets go