Skip to content

Commit e66ea51

Browse files
committed
fix(opencode): drop the reviewer step cap that Claude rejects as prefill
The first reviewer run on opencode-task-lz2s7 failed after exactly 50 turns: OpenCode 1.18 sends the step-cap notice as a trailing assistant message and Claude 4.6 via OpenRouter answers "This model does not support assistant message prefill" (anomalyco/opencode#32548). Remove `steps`; the workflow timeout bounds runtime. Also ask the reviewer to batch tool calls and stay on the changed files, since the failed run spent 68 tool calls on a three-file change.
1 parent 90aa9ca commit e66ea51

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎k8s/apps/opencode/configmap.yaml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Files for the OpenCode agent, mounted at /etc/opencode-agent (and gitconfig
22
# at $HOME/.gitconfig) by the opencode-task WorkflowTemplate.
3+
#
4+
# Don't set `steps` on an agent: OpenCode 1.18 sends the step-cap notice as a
5+
# trailing assistant message, which Claude 4.6+ rejects with "does not support
6+
# assistant message prefill" (anomalyco/opencode#32548). The workflow timeout
7+
# bounds runtime instead.
38
apiVersion: v1
49
kind: ConfigMap
510
metadata:
@@ -36,7 +41,6 @@ data:
3641
"mode": "subagent",
3742
"model": "openrouter/anthropic/claude-sonnet-4.6",
3843
"prompt": "{file:/etc/opencode-agent/reviewer.md}",
39-
"steps": 50,
4044
"permission": {
4145
"edit": "deny",
4246
"task": "deny",
@@ -175,6 +179,10 @@ data:
175179
available (read-only, no Secrets) to compare with live state.
176180
4. Write the report in the format below and stop.
177181
182+
Be economical: issue independent tool calls together in one turn, read
183+
the changed files and their direct neighbours only, and skip
184+
exploration that cannot change the verdict.
185+
178186
## What to check
179187
180188
- Brief: every requirement is met; nothing unrelated changed; decisions

0 commit comments

Comments
 (0)