Skip to content

Conversation

@roomote
Copy link
Contributor

@roomote roomote bot commented Feb 1, 2026

Related GitHub Issue

Closes: EXT-717 (Linear)

Roo Code Task Context (Optional)

https://app.roocode.com/cloud-jobs/BG8ilA3W?utm_source=github-comment&utm_medium=link&utm_campaign=linear.agent.session

Description

The VS Code extension currently defaults the Roo Code router ("roo" provider) to xai/grok-code-fast-1, but this model is no longer available from the Roo Code Cloud /v1/models endpoint (it has been marked as deprecated with a deprecation message).

This PR updates the default model to anthropic/claude-sonnet-4.5, which is an active, non-deprecated model available through the Vercel provider in Roo Code Cloud.

Changes:

  • Updated rooDefaultModelId in packages/types/src/providers/roo.ts from xai/grok-code-fast-1 to anthropic/claude-sonnet-4.5
  • Updated test files to use the new default model in mock data and test fixtures

Test Procedure

  1. Ran the RooHandler tests: cd src && npx vitest run api/providers/__tests__/roo.spec.ts - all 40 tests pass
  2. Ran the fetcher tests: cd src && npx vitest run api/providers/fetchers/__tests__/roo.spec.ts - all 29 tests pass
  3. Verified lint passes: pnpm run lint
  4. Verified type checking passes: pnpm run check-types

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.

Screenshots / Videos

N/A - no UI changes

Documentation Updates

  • No documentation updates are required.

Additional Notes

The deprecated model xai/grok-code-fast-1 is still supported through OpenRouter as a deprecated model, so users who have explicitly configured it will continue to work with a deprecation warning. This change only affects the default when no model is specified.


View task on Roo Code Cloud


Important

Update default model for Roo Code router to anthropic/claude-sonnet-4.5 and adjust tests accordingly.

  • Behavior:
    • Update rooDefaultModelId in roo.ts from xai/grok-code-fast-1 to anthropic/claude-sonnet-4.5.
    • Affects default model selection when no model is specified.
  • Tests:
    • Update mock data and test fixtures in roo.spec.ts and fetchers/roo.spec.ts to use anthropic/claude-sonnet-4.5.
    • Ensure all tests pass with the new default model.

This description was created by Ellipsis for 9ec2738. You can customize this summary. It will automatically update as commits are pushed.

The previous default model xai/grok-code-fast-1 is no longer available from
the Roo Code Cloud /v1/models endpoint. Updated to anthropic/claude-sonnet-4.5
which is an active, non-deprecated model available through the Vercel provider.

Fixes EXT-717
@roomote
Copy link
Contributor Author

roomote bot commented Feb 1, 2026

Rooviewer Clock   See task on Roo Cloud

Review complete. No issues found.

The changes correctly update the default model ID from the deprecated xai/grok-code-fast-1 to the active anthropic/claude-sonnet-4.5, with test fixtures properly updated to match.

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

contextWindow: 262_144,
supportsImages: false,
supportsReasoningEffort: true, // Enable reasoning for tests
"anthropic/claude-sonnet-4.5": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think opus might be a better choice? Could end up being cheaper than sonnet if you use the full 1M token context window that we normally provide in the Roo Code Router.

outputPrice: 0,
inputPrice: 3,
outputPrice: 15,
},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we want to add the cache price too

owned_by: "anthropic",
name: "Claude Sonnet 4.5",
description: "Fast coding model",
context_window: 262144,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess doesn't matter for a test, but these stats don't match

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants