Skip to content

feat: harden OpenCode compatibility for v0.5.22 - #9

Merged
ByBrawe merged 5 commits into
mainfrom
release/v0.5.22-compat-hardening
Aug 8, 2026
Merged

feat: harden OpenCode compatibility for v0.5.22#9
ByBrawe merged 5 commits into
mainfrom
release/v0.5.22-compat-hardening

Conversation

@ByBrawe

@ByBrawe ByBrawe commented Aug 8, 2026

Copy link
Copy Markdown
Owner

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

  • Keep current command acknowledgement fallback, while also setting output.noReply = true so newer hosts can skip the model turn if/when the hook supports it.
  • Validate the plugin under Bun as well as Node.
  • Verify the declared minimum peer @opencode-ai/plugin@1.4.0 instead of only testing the newest dev dependency.
  • Add scheduled compatibility testing against @opencode-ai/plugin@latest.
  • Bump package to 0.5.22 and document compatibility behavior.

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.

Copilot AI lite review requested due to automatic review settings August 8, 2026 16:20
@ByBrawe
ByBrawe merged commit 0cf3a6e into main Aug 8, 2026
4 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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 = true for handled commands (fallback remains intact for current OpenCode hosts).
  • Assert noReply behavior 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.

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.

2 participants