Description
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.
Screenshot and/or share link
None.
Operating System
macOS
Terminal
OpenCode CLI
Description
Taskcalls with acommandcreate a synthetic user message after the subtask completes:This is injected unconditionally in
packages/opencode/src/session/prompt.tswhentask.commandis 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.16Steps to reproduce
Taskwith a review-only prompt and a non-emptycommandvalue, such asreview.Screenshot and/or share link
None.
Operating System
macOS
Terminal
OpenCode CLI