anomalyco / anomalyco/opencode
Question tool accepts empty questions array
Open
@nexxeln is already working on this.
Since Aug 10, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
The question tool accepts an empty questions array. Question.ask then registers a pending request that has nothing to render or answer, so the session can wait indefinitely.
OpenCode version
1.18.16 / current dev
Steps to reproduce
- Invoke the question tool with
{ "questions": [] }. - Observe that the call remains pending instead of failing input validation.
This affects both the existing question tool and the V2 core question tool.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.