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
Commit 00c5a85
Browse filesBrowse the repository at this point in the historyBrowse files
fix(agent/opencode): accept clean-exit runs when OpenCode v2 omits step_finish
OpenCode v2 `run --format json` frequently ends the stream after the
final text event without emitting step_finish (upstream:
anomalyco/opencode#53207; Multica: multica-ai#8892). The
daemon's terminal-signal guard then fails the run and discards a
completed answer.
Scope the rescue to the openStep guard only: when the run ended
mid-step at EOF but the CLI process exited 0 and text output was
produced, accept the run as completed (with a Warn log). The
continuation and void-step guards keep failing closed, as do runs
with a non-zero exit or an error event.
Verified locally: go build ./pkg/agent and the OpenCode unit tests
pass.
0 commit comments