anomalyco / anomalyco/opencode

Question tool accepts empty questions array

Open
#41,549 0 comments 0 reactions 1 assignee View on GitHub

@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
  1. Invoke the question tool with { "questions": [] }.
  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.