fix(codex-catalog): preserve native fallback without catalog - #1374
Conversation
📝 WalkthroughWalkthroughThe native slug lookup now separates raw catalog data from documented additions. A regression test verifies that missing catalog data still exposes the built-in native model list and picker model. ChangesCatalog native slug resolution
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
✅ Deterministic PR hygiene checks passed. |
✅ READY
Review readiness checklist
✅ 4/4 boxes ticked. This pull request is already Ready for Review. |
7a14857 to
77070f4
Compare
|
Please rebase this PR onto the latest |
77070f4 to
164094b
Compare
|
Thanks @luvs01 — this is a clean, focused fix. The separation between genuine catalog-derived native slugs and documented picker additions restores the intended static native fallback without disturbing picker behavior, and the missing-catalog regression covers the failure mode nicely. Appreciate the careful rebase and validation work here. 🙌 |
Summary
NATIVE_OPENAI_MODELSfallback when no live, account-bound, or on-disk catalog is available.Verification
bun test tests/codex-catalog-sync-hardening.test.ts --test-name-pattern 'native model fallback'— 1 passed.bun test tests/claude-models-discovery.test.ts --test-name-pattern 'Codex discovery restores account rows'— 1 passed.bun run typecheck— passed.bun run privacy:scan— passed.git diff --check HEAD^ HEAD— passed.codex-catalog-sync-hardeningfile was attempted once but was not green in this Windows environment (5 passed / 15 unrelated catalog or environment assertions failed), so it is not claimed as passing evidence.Checklist
dev.Review readiness checklist
All CI tests are green on my local testing.
I pushed my PR to the latest dev commit.
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.
Summary by CodeRabbit
Bug Fixes
Tests