Skip to content

v4.0.0

Choose a tag to compare

@tbosancheros39 tbosancheros39 released this 17 Oct 20:42
· 21 commits to master since this release
  • OpenCode V2 plugin API. The package now depends on @opencode/plugin and default-exports Plugin.define({ id: "opencode-thinking-fix", setup }), so it can be installed from the V2 catalog. The V1 implementation is kept on the same default export as server() (OpenCode >= 1.18.29), and ThinkingFixPlugin remains a named export.
  • V2 hooks: ctx.session.hook("model.request") adds x-session-id; ctx.session.hook("context") injects the reasoning passback field on assistant turns via native.openaiCompatible.reasoning_content. V2's OpenAI Chat protocol maps that carrier to the model's configured reasoning field (reasoning_content or reasoning), and already emits an empty field natively for DeepSeek-required models.
  • @opencode-ai/plugin is no longer a peer dependency; the V1 hook shapes are typed locally so the package has no V1 runtime import.
  • Version is a major bump because the entrypoint shape changed. OpenCode 1.x users below 1.18.29 should stay on 3.x.