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
{{ message }}
Repository navigation
task command injects a synthetic user instruction that can override review-only scope #41866
Task calls with a command create a synthetic user message after the subtask completes:
Summarize the task tool output above and continue with your task.
This is injected unconditionally in packages/opencode/src/session/prompt.ts when task.command is present.
For a command representing review-only work, this can be interpreted as permission to implement a reported fix. The command's original scope is not carried into the continuation, and the injected text appears as a user instruction even though the user did not send it.
Expected: command-specific scope remains authoritative. A review command should result in a review summary, not an imperative continuation that can authorize edits. The runtime should omit this message, make it non-instructional, or include an explicit scope-preserving continuation.
Related: #33044 also concerns synthetic continuation messages, but this is a command-semantics issue.
Plugins
Custom review command / task wrapper.
OpenCode version
1.18.16
Steps to reproduce
Invoke Task with a review-only prompt and a non-empty command value, such as review.
Have the task report a code issue.
Observe that OpenCode adds the synthetic user message above.
The next turn has an imperative instruction to “continue,” without preserving the review-only constraint; an agent may edit the worktree to fix its review finding.
Activity
github-actions commentedon Oct 11, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.