opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Slash commands through ACP doesn't work

Open klonuo opened this issue 3 weeks ago • 10 comments

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:

Image

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

klonuo avatar Nov 04 '25 12:11 klonuo

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.

github-actions[bot] avatar Nov 04 '25 12:11 github-actions[bot]

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

rekram1-node avatar Nov 04 '25 14:11 rekram1-node

Yes, none of them as zed reported Available commands: none

I tried /init now, just in case, but same output

klonuo avatar Nov 04 '25 14:11 klonuo

Huh weird, the only people i heard say this use windows....

rekram1-node avatar Nov 04 '25 14:11 rekram1-node

I can't replicate at all so im curious what causes it, will need to investigate more

Image

rekram1-node avatar Nov 04 '25 14:11 rekram1-node

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")) }

klonuo avatar Nov 04 '25 14:11 klonuo

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

rekram1-node avatar Nov 04 '25 14:11 rekram1-node

Yes, Claude works fine:

Image

klonuo avatar Nov 04 '25 14:11 klonuo

well ig im just doing something wrong there then, Ill take a look, that's helpful

rekram1-node avatar Nov 04 '25 15:11 rekram1-node

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...

klonuo avatar Nov 04 '25 17:11 klonuo

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

rekram1-node avatar Nov 05 '25 06:11 rekram1-node

should be fixed by https://github.com/sst/opencode/commit/1e0596bc46fcd130257174e6691c74484391f905

rekram1-node avatar Nov 05 '25 06:11 rekram1-node

Image

klonuo avatar Nov 05 '25 09:11 klonuo

yep thats expected lets go

rekram1-node avatar Nov 05 '25 14:11 rekram1-node