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
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Problem
When using OpenCode with ACP (Agent Client Protocol) compatible editors like Zed, the AI assistant cannot ask questions to the user. Questions get silently dropped, blocking interactive workflows.
Background
The question tool was previously disabled for ACP mode in PR #11379 due to issues with specific clients. However, this blanket disable causes a regression:
AI cannot ask clarifying questions ("Which test framework should I use?")
Users cannot make choices from predefined options
Flows requiring user input cannot complete
Current Behavior
AI: I'll create a test file for you. Which framework would you prefer?
[User sees nothing - question is silently ignored]
AI: [proceeds with random/default choice]
Expected Behavior
AI: I'll create a test file for you. Which framework would you prefer?
[Zed shows native permission dialog with options]
User selects "Vitest"
AI: [proceeds with Vitest test file]
Proposed Solution
Enable question support for ACP clients by mapping question events to the existing request_permission flow. This approach:
Works immediately with existing ACP clients (no protocol changes)
Uses native UI - clients display questions through their permission dialog UI
Feature hasn't been suggested before.
Describe the enhancement you want to request
Problem
When using OpenCode with ACP (Agent Client Protocol) compatible editors like Zed, the AI assistant cannot ask questions to the user. Questions get silently dropped, blocking interactive workflows.
Background
The
questiontool was previously disabled for ACP mode in PR #11379 due to issues with specific clients. However, this blanket disable causes a regression:Current Behavior
Expected Behavior
Proposed Solution
Enable question support for ACP clients by mapping question events to the existing
request_permissionflow. This approach:Implementation
question.askedevent handler in ACP AgentScope
In scope:
Out of scope (future work):
These limitations will be addressed when ACP's Elicitation specification (PR #376) is finalized.
Verification
Tests included in PR:
Related