fix: use fallback chain when connected-providers cache missing#1314
fix: use fallback chain when connected-providers cache missing#1314evsong wants to merge 1 commit into
Conversation
When connected-providers.json cache doesn't exist (first run or cache cleared), the model resolver was skipping the entire fallback chain and falling through to systemDefaultModel. This caused all category-specific model configurations to be ignored. Fix: Use the first entry in fallback chain instead of skipping to systemDefault. This ensures category models (quick, visual-engineering, etc.) work correctly even without the cache. Fixes code-yeongyu#1264
|
Thank you for your contribution! Before we can merge this PR, we need you to sign our Contributor License Agreement (CLA). To sign the CLA, please comment on this PR with: This is a one-time requirement. Once signed, all your future contributions will be automatically accepted. I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
|
[sisyphus-bot] Thanks for this fix, @evsong! Code Review Summary: This correctly addresses the bug where category-specific model configurations were being ignored when The Fix:
Test Updates:
Before Merge:
Once CLA is signed and approved, this is safe to merge. |
|
[sisyphus-bot] PR sweep first-pass triage on
Needs rebase + review. Please rebase onto current Assigning |
|
[sisyphus-bot] Hi evsong. 🙏 Thanks for the connected-providers cache-missing fallback fix. Picking this back up from the 5/16 triage. The PR is small (37/24 across 2 files) and shows CONFLICTING against current The fix (when Sorry for the long pause; really appreciate the careful cache-missing handling. |
eb25d29 to
2bfad49
Compare
Summary
connected-providers.jsoncache doesn't existProblem
When
connected-providers.jsoncache is missing (first run or cache cleared),resolveModelWithFallback()was skipping the entire fallback chain and falling through tosystemDefaultModel. This caused all category-specific model configurations (quick, visual-engineering, ultrabrain, etc.) to be ignored.Related Issues: #1264, #1295
Solution
When cache is
null, use the first entry in the fallback chain instead of skipping:Testing
Summary by cubic
Fixes category-specific model selection when connected-providers.json is missing by using the first fallback chain entry instead of the system default. Ensures categories like quick, visual-engineering, and ultrabrain use their intended models on first run or after cache clear.
Written for commit 7ef706f. Summary will update on new commits.