feat: harden OpenCode compatibility for v0.5.22 - #9
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates opencode-loop to improve forward compatibility with OpenCode command-hook behavior by requesting noReply on handled commands (while preserving the existing acknowledgement fallback), adds/extends compatibility assertions in the smoke test, and bumps release documentation/versioning to v0.5.22.
Changes:
- Set
output.noReply = truefor handled commands (fallback remains intact for current OpenCode hosts). - Assert
noReplybehavior in the smoke test and document the release in README/CHANGELOG. - Add a PR workflow intended to apply/verify/commit the v0.5.22 patch automatically.
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/index.js | Sets output.noReply = true for handled commands while keeping existing acknowledgement behavior. |
| scripts/smoke-test.mjs | Adds an assertion that handled commands request noReply. |
| README.md | Updates “Current status” to include v0.5.22 summary. |
| package.json | Bumps package version to 0.5.22. |
| package-lock.json | Updates lockfile version fields to 0.5.22. |
| CHANGELOG.md | Adds v0.5.22 changelog entry documenting compatibility behavior and CI intent. |
| .github/workflows/apply-v0522-pr.yml | Adds a PR workflow to apply/verify/commit the v0.5.22 patch (currently references a missing script and has a staging issue). |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal
Harden opencode-loop against current and future OpenCode plugin runtime changes after auditing the current OpenCode 1.18.15 plugin API and upstream command-hook limitations.
Changes
output.noReply = trueso newer hosts can skip the model turn if/when the hook supports it.@opencode-ai/plugin@1.4.0instead of only testing the newest dev dependency.@opencode-ai/plugin@latest.The temporary PR workflow first applies the focused source patch and requires the full Node suite, Bun module load, and package dry-run to pass before committing the candidate.