Skip to content

Conversation

@roomote
Copy link

@roomote roomote bot commented Oct 28, 2025

Summary

This PR attempts to address Issue #8880 where users encounter a "404 Not Found" error when using the deprecated code-supernova model.

Problem

Users who have roo/code-supernova configured as their model are experiencing 404 errors because this model ID has been deprecated and replaced with roo/code-supernova-1-million.

Solution

Added automatic model ID migration in the RooHandler.getModel() method that transparently converts the deprecated model ID to the new one. This ensures backward compatibility while users transition to the new model ID.

Changes

  • src/api/providers/roo.ts: Added model ID migration logic in getModel() method
  • src/api/providers/tests/roo.spec.ts: Added comprehensive test coverage for the migration

Testing

  • ✅ All existing tests pass
  • ✅ Added new test cases specifically for model ID migration
  • ✅ Verified non-deprecated models are unaffected
  • ✅ Type checking and linting pass

Impact

This is a non-breaking change that:

  • Automatically fixes the 404 error for users still using the old model ID
  • Maintains backward compatibility
  • Requires no user action

Fixes #8880

Feedback and guidance are welcome!


Important

Migrates deprecated roo/code-supernova model ID to roo/code-supernova-1-million in RooHandler.getModel() to fix 404 errors.

  • Behavior:
    • RooHandler.getModel() now migrates deprecated roo/code-supernova model ID to roo/code-supernova-1-million.
    • Ensures backward compatibility by automatically handling deprecated model IDs.
  • Testing:
    • Added tests in roo.spec.ts to verify model ID migration and ensure non-deprecated models remain unaffected.
  • Misc:

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

…illion

- Add model ID migration logic in RooHandler.getModel() to automatically convert the deprecated 'roo/code-supernova' model ID to 'roo/code-supernova-1-million'
- Add comprehensive test coverage for the migration logic
- Fixes #8880 where users get 404 errors when using the old model ID
@roomote roomote bot requested review from cte, jr and mrubens as code owners October 28, 2025 07:43
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. bug Something isn't working labels Oct 28, 2025
@roomote
Copy link
Author

roomote bot commented Oct 28, 2025

Review Complete

No issues found. The implementation looks good:

  • The model ID migration logic is clean and transparent
  • Test coverage is comprehensive and validates both deprecated and non-deprecated models
  • The change is backward compatible and solves the reported 404 error
  • Code follows existing patterns in the codebase

Follow Along on Roo Code Cloud

@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Oct 28, 2025
Copy link
Author

@roomote roomote bot left a comment

Choose a reason for hiding this comment

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

No issues found.

@daniel-lxs daniel-lxs closed this Oct 29, 2025
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Oct 29, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. size:M This PR changes 30-99 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[BUG] 404 "Not Found" Retry attempt 7

4 participants