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
Keeps reasoning content across turns so reasoning models stop returning 400s
Description
A plugin plus an optional proxy that puts the reasoning content back on every later turn. Some providers reject a request whose assistant turns lost their chain of thought, and some silently drop the earlier reasoning; either way the model forgets what it was working on by turn two. The plugin preserves the field on the context hook with no configuration, and the proxy caches the real reasoning from the SSE stream and replays it. Covers DeepSeek, Kimi, GLM, MiMo, MiniMax, InclusionAI Ling, OpenCode Go and OpenRouter.
Installation
npm i opencode-thinking-fix
Checklist
The repository is public and maintained by me or the project I'm representing, or I'm a user recommending it.
It is not a cryptocurrency, token, or trading project (these are not accepted).
Filed from outside the repository, so it arrived without the submission label and the automation has not picked it up. Applying submission should make issues.yml build the entry and open a PR on submission/595.
The same entry is already prepared and validated in #152, so this issue can also simply be closed in favour of that PR — whichever is easier. Locally: node scripts/validate.js passes over all 584 files, npm test 46/46, and the package is on npm as opencode-thinking-fix@4.0.2 with a provenance attestation.
Activity
tbosancheros39 commentedon Oct 22, 2026
Filed from outside the repository, so it arrived without the
submissionlabel and the automation has not picked it up. Applyingsubmissionshould makeissues.ymlbuild the entry and open a PR onsubmission/595.The same entry is already prepared and validated in #152, so this issue can also simply be closed in favour of that PR — whichever is easier. Locally:
node scripts/validate.jspasses over all 584 files,npm test46/46, and the package is on npm asopencode-thinking-fix@4.0.2with a provenance attestation.