Conversation
When the stored text-generation selection is unusable, fall back to the enabled instance's defaultModelSelection or custom model instead of a hardcoded slug such as claude-haiku-4-5. Co-authored-by: maco <macodev00@users.noreply.github.com>
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a localized server bug fix that makes one-shot text generation respect existing configured model selections and custom models, with targeted regression coverage. Existing fallback defaults remain intact when no configured model is available. You can add or adjust custom eligibility rules. Learn more. |
|
Understand this PR’s impact Explore downstream dependencies and potential security impact with Blast Radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: pingdotgg/t3code/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe server now resolves text-generation fallbacks from matching default selections and configured custom models before using provider defaults. Tests cover instance and legacy custom model configurations. ChangesText generation fallback
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~15 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
What
defaultModelSelectionor first custom model instead of always hardcodingclaude-haiku-4-5.Why
Fixes #12651
Redo of closed #12732 addressing Macroscope Not-approved (product-default model selection): change stays local to the fallback model pick on the existing instance path; product slugs remain last-resort when nothing is configured.
UI
No UI. Server one-shot commit/PR/branch/title generation model selection only.
Checklist
Summary by CodeRabbit