Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.
This repository was archived by the owner on May 15, 2026. It is now read-only.

[ENHANCEMENT] Openrouter provider supports reasoning_details #9125

Closed as duplicate

Description

@viktorxhzj

Problem (one or two sentences)

OpenRouter reasoning details aren't preserved between conversation turns, breaking reasoning continuity for models like MiniMax-M2

Context (who is affected and when)

Users of Roo Code who use OpenRouter as their API provider with reasoning-capable models are affected during multi-turn conversations. This impacts the quality of responses in complex tasks that require the model to build upon previous reasoning, such as debugging sessions, architectural discussions, or iterative problem-solving workflows.

Desired behavior (conceptual, not technical)

When using reasoning-capable models through OpenRouter, the system should preserve the model's reasoning traces throughout the conversation. This allows the model to reference and build upon its previous reasoning in subsequent responses, maintaining a coherent thought process across multiple turns and improving the quality of assistance for complex, multi-step tasks.

Constraints / preferences (optional)

No response

Request checklist

  • I've searched existing Issues and Discussions for duplicates
  • This describes a specific problem with clear context and impact

Roo Code Task Links (optional)

No response

Acceptance criteria (optional)

No response

Proposed approach (optional)

No response

Trade-offs / risks (optional)

No response

Activity

  1. added
    Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.
    on Nov 8, 2025
  2. ghost added a commit that references this issue on Nov 8, 2025
    894d70e
  3. piiq commented on Dec 19, 2025

    @piiq

    additional context:

    This also impacts models like Gemini 3 Flash

    Date/time: 2025-12-19T10:49:16.974Z
    Extension version: 3.36.14
    Provider: openrouter
    Model: google/gemini-3-flash-preview
    
    OpenRouter completion error: Gemini models require OpenRouter reasoning details to be preserved in each request. Please refer to our docs: https://openrouter.ai/docs/guides/best-practices/reasoning-tokens#preserving-reasoning-blocks. Upstream error: {
      "error": {
        "code": 400,
        "message": "Unable to submit request because function call `default_api:update_todo_list` in the 16. content block is missing a `thought_signature`. Learn more: https://docs.cloud.google.com/vertex-ai/generative-ai/docs/thought-signatures",
        "status": "INVALID_ARGUMENT"
      }
    }
    
  4. added and removed
    Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.
    EnhancementNew feature or request
    on Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions