Skip to content

The reasoning block needs to be preserved. #62

Closed

Description

@inpos

For Qwen reasoning models, it is important to preserve their own thoughts (preserve_thinking). Otherwise, the model’s output quality begins to degrade.

Activity

  1. changed the title [-]The reasoning block needs to be passed back into the model.[/-] [+]The reasoning block needs to be preserved.[/+] on Oct 15, 2026
  2. inpos commented on Oct 15, 2026

    @inpos
    Author

    Awesome! I'll test this in next release.

  3. nizovtsevnv commented on Oct 15, 2026

    @nizovtsevnv
    Contributor

    Thanks for the report! This is fixed and will ship in the next release.

    An OpenAI-compatible connection now has a send_reasoning setting (auto | on | off, shown as Send reasoning back on the connection's settings page). When it is on, termide:

    • sends the model's earlier reasoning back as reasoning_content on its previous answers, and
    • when the reasoning level goes through enable_thinking, also sets chat_template_kwargs.preserve_thinking = true, so the Qwen 3.6 chat template keeps that reasoning instead of dropping it.

    The default, auto, turns it on wherever the level goes through enable_thinking: local servers (llama.cpp, vLLM, LM Studio, …) by default, or any connection with reasoning_param = "enable_thinking". It stays off elsewhere, because some hosted APIs (DeepSeek's) reject the field. To force it either way:

    [ai.connections.local]
    send_reasoning = "on"   # or "off"

    Also, chat_template_kwargs you add yourself are now merged with termide's own instead of replacing them, so they no longer drop enable_thinking.

  4. nizovtsevnv commented on Oct 15, 2026

    @nizovtsevnv
    Contributor

    @inpos thanks again for spotting this, it's a really good catch. Losing the model's earlier reasoning between turns hurts local reasoning models quietly, and it's easy to miss. Looking forward to hearing how it works for you once the release is out.

  5. nizovtsevnv commented on Oct 16, 2026

    @nizovtsevnv
    Contributor

    @inpos this is out now in 0.42.0. send_reasoning defaults to auto, which is on for local servers, so a Qwen 3.6 connection should keep its reasoning between turns with no change to your config. Let us know how it goes, or reopen this if the quality still drops.

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