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
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.