Skip to content

Conversation

@roomote
Copy link
Contributor

@roomote roomote bot commented Jan 7, 2026

Related GitHub Issue

Closes: #9344

Description

This PR attempts to address Issue #9344 by correcting the context window limit for Mistral's codestral-latest model.

The codestral-latest model was incorrectly configured with a context window of 256,000 tokens when the official Mistral documentation specifies it should be 131,000 tokens (128k in practice).

Updated the contextWindow value in packages/types/src/providers/mistral.ts from 256,000 to 131,000.

Test Procedure

  • Ran type checking: npm run check-types - passed
  • Ran linting: npm run lint - passed
  • Ran all tests in packages/types: npx vitest run - 139 tests passed

Pre-Submission Checklist

  • Issue Linked: This PR is linked to an approved GitHub Issue (see "Related GitHub Issue" above).
  • Scope: My changes are focused on the linked issue (one major feature/fix per PR).
  • Self-Review: I have performed a thorough self-review of my code.
  • Testing: New and/or updated tests have been added to cover my changes (if applicable).
  • Documentation Impact: I have considered if my changes require documentation updates (see "Documentation Updates" section below).
  • Contribution Guidelines: I have read and agree to the Contributor Guidelines.

Documentation Updates

  • No documentation updates are required.

Additional Notes

Feedback and guidance are welcome!

@roomote
Copy link
Contributor Author

roomote bot commented Jan 7, 2026

Rooviewer Clock   See task on Roo Cloud

Review complete. No issues found.

The context window for codestral-latest has been correctly updated to 128k (128_000 tokens), matching the official Mistral documentation and addressing the reviewer's feedback.

Previous reviews

Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues.

@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Jan 7, 2026
@hannesrudolph
Copy link
Collaborator

@roomote change it to 128k please, not 131k.

@roomote
Copy link
Contributor Author

roomote bot commented Jan 7, 2026

Fixaroo Clock   See task on Roo Cloud

Changed codestral-latest context window to 128k. All local checks passed.

View commit | Revert commit

@hannesrudolph hannesrudolph moved this from Triage to PR [Draft / In Progress] in Roo Code Roadmap Jan 9, 2026
@hannesrudolph hannesrudolph added PR - Draft / In Progress and removed Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. labels Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: PR [Draft / In Progress]

Development

Successfully merging this pull request may close these issues.

[BUG] Mistral AI codestral-latest Context Window is incorrect

3 participants