Skip to content

fix: ignore non-zero exit codes for opencode non-interactive agents - #602

Merged
khaliqgant merged 2 commits into
mainfrom
opencode-ignore-exits
Mar 20, 2026
Merged

khaliqgant merged 2 commits into
mainfrom
opencode-ignore-exits

Conversation

@khaliqgant

@khaliqgant khaliqgant commented Mar 20, 2026 •

Copy link
Copy Markdown
Member

opencode run exits with non-zero even on success, causing the workflow runner to retry steps that completed correctly. Add ignoreExitCode flag to CliDefinition and set it for opencode so verification (not exit code) determines success.


Open with Devin

opencode run exits with non-zero even on success, causing the workflow
runner to retry steps that completed correctly. Add ignoreExitCode flag
to CliDefinition and set it for opencode so verification (not exit code)
determines success.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

The truncated 8-char prefix wasn't useful for resuming or debugging
runs. Print the full ID so it can be copied directly.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@khaliqgant
khaliqgant merged commit d54e8c1 into main Mar 20, 2026
32 of 33 checks passed
@khaliqgant
khaliqgant deleted the opencode-ignore-exits branch March 20, 2026 14:52
khaliqgant added a commit that referenced this pull request Mar 25, 2026
…602)

* fix: ignore non-zero exit codes for opencode non-interactive agents

opencode run exits with non-zero even on success, causing the workflow
runner to retry steps that completed correctly. Add ignoreExitCode flag
to CliDefinition and set it for opencode so verification (not exit code)
determines success.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix: print full run ID in default workflow logger

The truncated 8-char prefix wasn't useful for resuming or debugging
runs. Print the full ID so it can be copied directly.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
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.

1 participant