GeezerVison is showing github.com — fix(acp): handle question.asked event to prevent hanging by Meskjei · Pull Request #17921 · anomalyco/opencode
Conversation
Meskjei
commented
Mar 17, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Issue for this PR
Closes #17920
Type of change
- Bug fix
- New feature
- Refactor / code improvement
- Documentation
What does this PR do?
When OpenCode runs via ACP, the question tool would hang indefinitely because the question.asked event was not handled in the ACP agent's handleEvent method.
The fix adds a new case handler for question.asked that:
- Converts question options to ACP
requestPermission options
- Forwards the question to the ACP client via
requestPermission
- Maps the client's response back to question answers
- Calls the SDK's
question.reply() or question.reject() to unblock the tool
This follows the same pattern as the existing permission.asked handler.
How did you verify your code works?
- Ran
bun run --cwd packages/opencode typecheck - passes
- The change follows the existing
permission.asked handler pattern which is proven to work
Screenshots / recordings
N/A - This is a backend change, no UI changes.
Checklist
- I have tested my changes locally
- I have not included unrelated changes in this PR
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
When OpenCode runs via ACP, the question tool would hang indefinitely
because the question.asked event was not handled in the ACP agent.
This change adds a handler for question.asked that:
- Converts question options to ACP requestPermission options
- Forwards the question to the ACP client via requestPermission
- Maps the response back to question answers
- Calls the SDK question.reply to unblock the tool
Fixes anomalyco#17920
|
The following comment was made by an LLM, it may be inaccurate:
Based on my search, I found one potentially related PR:
Related PR:
- feat(acp): enable question tool for ACP clients #13750 -
feat(acp): enable question tool for ACP clients
- This PR is related as it previously enabled the question tool for ACP clients. Your PR (17921) extends that work by specifically handling the
question.asked event to prevent hanging, which appears to be a follow-up fix to the earlier feature implementation.
The current PR #17921 is appropriately addressing a specific issue (issue #17920) with the question tool hanging in ACP, so this appears to be a targeted fix rather than a duplicate.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Mar 20, 2026
|
Automated PR Cleanup
Thank you for contributing to opencode.
Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.
This PR was closed because it matched the following cleanup criteria:
- The PR was created more than 1 month ago
- The PR had fewer than 2 positive reactions
- Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR
PRs created within the last month are not affected by this cleanup.
If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.
Thanks again for taking the time to contribute.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Question tool hangs in ACP mode
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|