Skip to content

Add: opencode-thinking-fix #595

Open

Description

@tbosancheros39

Name

opencode-thinking-fix

Repository URL

https://github.com/tbosancheros39/opencode-thinking-fix

npm package

opencode-thinking-fix

Category

plugins

Kind

plugin

Topics

context, providers

Tagline

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

Activity

  1. tbosancheros39 commented on Oct 22, 2026

    @tbosancheros39
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions