GeezerVison is showing github.com — Question tool hangs in ACP mode · Issue #17920 · anomalyco/opencode
Question tool hangs in ACP mode #17920
Description
Bug Description
When OpenCode runs via ACP (Agent Client Protocol), the question tool hangs indefinitely when the LLM tries to ask the user a question.
Root Cause
In packages/opencode/src/acp/agent.ts, the handleEvent method only handles these event types:
permission.asked - forwarded to client via requestPermission
message.part.updated
message.part.delta
The question.asked event is not handled, so when the question tool is invoked:
QuestionService.ask() publishes question.asked event
- A
Deferred is created to wait for the answer
- No handler forwards this to the ACP client
- The tool blocks forever waiting for a response
Proposed Fix
Add a question.asked event handler in the ACP agent that:
- Converts the question options to ACP
requestPermission options
- Calls
connection.requestPermission() to get user input from the client
- Maps the response back to question answers
- Calls the SDK's
question.reply() to unblock the tool
Impact
This affects all ACP-compatible editors (Zed, JetBrains, Neovim plugins) when the LLM tries to use the question tool.
Activity
github-actions commented on Mar 17, 2026
This issue might be a duplicate of existing issues. Please check:
added a commit that references this issue
on Mar 17, 2026This issue will close once commit 05f0214 is merged into the 'dev' branch.05f0214 rekram1-node commented on Jun 23, 2026
Automated: closing question issues.
GitHub Issues are for bug reports and feature requests only — questions / support are no longer tracked here.
If this is a bug or feature request, please open a new issue with the appropriate template.
rekram1-node commented on Jun 23, 2026
Reopening – this was incorrectly closed by automated question-issue cleanup. Sorry for the noise.
WaterRRabbit commented on Jun 25, 2026
+1 — we also need this. Happy to help test once #33482 / #20017 lands.
github-actions commented on Aug 25, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.
Metadata
Metadata
Development
No branches or pull requestsIssue actions