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
OpenCode breaks in Zed if asked to use the AskUserQuestion tool #11361
We’ve gotten at least one report so far of Zed breaking for a user if they asked a question which prompted the LLM to use the AskUserQuestion tool. As mentioned in my comment on that issue:
However, Zed doesn’t really support interactive inputs (needed for asking questions) as of now, so we effectively do not support that tool. OpenCode -- if they are open to it -- should disable that tool if they detect the request is coming from Zed.
I quickly asked Opus 4.5 to go through both our codebases and it suggested 3 solutions and I only really liked one of them. So for now, here’s the suggestion I liked (because it seems the most straight-forward to me):
Zed already sends some info about itself here, maybe we can use that in initialize?
In other words, IIUC, OpenCode already receives client info from Zed with name: "zed". You’d just have to check it somehow:
// Check if running under a known ACP client that doesn’t support question toolconstdisableQuestionTool=clientInfo?.name==="zed"...(!disableQuestionTool&&["app","cli","desktop"].includes(Flag.OPENCODE_CLIENT) ? [QuestionTool] : []),
If this sounds like an OK change, happy to send a PR. If not, do you guys have a better solution? Would really like to see OpenCode working in Zed!
Plugins
N/A
OpenCode version
1.1.42
Steps to reproduce
Open Zed (grabbing Nightly is optimal: curl https://zed.dev/install.sh | ZED_CHANNEL=nightly sh)
Install OpenCode from the ACP registry (open the command palette and do zed: acp registry)
Ask the agent something that would prompt the use of the AskUserQuestion tool
Zed will forever keep spinning (see screenshot below or in the original issue on our repo)
Activity
rekram1-node commentedon Jan 30, 2026
Yeah it shouldn't be present when using acp
yeskunall commentedon Jan 30, 2026
Hopefully I didn’t misunderstand you -- so ya’ll will look to fix it on your end? No action needed on my part, then? If so, I’ll wait for your PR.
rekram1-node commentedon Jan 30, 2026
Yes correct
rekram1-node commentedon Jan 30, 2026
will be fixed in next release