Skip to content

fix(opencode): answer question annotations instead of editing code - #409

Merged
umputun merged 1 commit into
masterfrom
opencode-question-annotations
Oct 23, 2026
Merged

umputun merged 1 commit into
masterfrom
opencode-question-annotations

Conversation

@umputun

@umputun umputun commented Oct 23, 2026

Copy link
Copy Markdown
Owner

OpenCode was the only integration without the "ask instead of instruct" rule. The v1 /revdiff command told the agent to address every annotation with code changes, and neither the v1 tool description nor the v2 diff-review prompt said anything about questions. Claude Code, Codex and Pi already distinguish explanation requests from change requests.

  • v1 command, v1 tool description and v2 diff-review prompt now carry the same rule: an annotation containing ??, or starting with explain, what is, how does and the like, is answered in chat and changes no code, every other annotation is handled as before
  • the docs that list which integrations answer questions now include OpenCode
  • a v2 test asserts the diff-review prompt carries the rule

The OpenCode v1 command told the agent to address every annotation
with code changes, without distinguishing questions from change
requests.
Add the question rule the Claude, Codex and Pi integrations already
follow to the v1 command, the v1 tool description and the v2
diff-review prompt: a question is answered in chat and changes no code.
The docs that list which integrations answer questions now name
OpenCode beside Pi.
Copilot AI balanced review requested due to automatic review settings October 23, 2026 16:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@umputun
umputun merged commit eb76852 into master Oct 23, 2026
7 checks passed
@umputun
umputun deleted the opencode-question-annotations branch October 23, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants