Skip to content

Allow Limiting Qwen CLI Provider Context Size in Roo Code #7598

@bizprat

Description

@bizprat

What specific problem does this solve?

Context:
The Qwen CLI provider currently defaults to a large context window size of 1 million tokens. However, in practice, when token usage exceeds approximately 200,000 tokens, tasks in Roo Code become very slow and tend to over-engineer outputs, negatively impacting performance.

Problem:
This very large context window causes inefficiency and delays during coding sessions using Qwen CLI.

Comparison:
When using the Qwen provider via OpenRouter with a default context window of 262,144 tokens, no such issues are observed.

Request:
Please add a setting or option in Roo Code to limit or cap the Qwen CLI provider context window size (e.g., 256k tokens). This would help maintain smoother performance and better task outputs.

Additional context (optional)

No response

Roo Code Task Links (Optional)

No response

Request checklist

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

Interested in implementing this?

  • Yes, I'd like to help implement this feature

Implementation requirements

  • I understand this needs approval before implementation begins

How should this be solved? (REQUIRED if contributing, optional otherwise)

No response

How will we know it works? (Acceptance Criteria - REQUIRED if contributing, optional otherwise)

No response

Technical considerations (REQUIRED if contributing, optional otherwise)

No response

Trade-offs and risks (REQUIRED if contributing, optional otherwise)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - Needs ScopingValid, but needs effort estimate or design input before work can start.enhancementNew feature or requestfeature requestFeature request, not a bugproposal

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions