fix(catalog): hide custom models when provider is disabled - #4199
fix(catalog): hide custom models when provider is disabled#4199leonclab wants to merge 1 commit into
Conversation
Agent-Generated-By: Codex
|
✅ Deterministic PR hygiene checks passed. |
⏳ DRAFT
What to do
Review readiness checklist
0/4 boxes ticked. This PR stays in draft until every box above is ticked. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE 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. 📝 WalkthroughWalkthroughChangesDisabled Provider Catalog Behavior
Merge Risk: ⚪ Minimal · up to Disabled-provider models will no longer appear in catalog results or client exports, and their settings will not shape custom catalog entries. Focused tests pass, so the change is mergeable. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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 |
리뷰 · 우선순위 58 / 80이 PR은 Codex 모델 목록에서 프로바이더를 끈 뒤에도 그 프로바이더 아래 수동 커스텀 모델이 피커에 남는 구멍을 막습니다. 지금 라인 2148 (필터) - 경로 테스트 경로/심볼 메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
Ingwannu
left a comment
There was a problem hiding this comment.
The disabled-provider filter closes the direct visibility gap. The second source change is separate: gatherRoutedModelsUncached stops inheriting provider metadata for custom rows while that provider is disabled. The two new tests only call filterCatalogVisibleModels, so they do not observe that gather/export behavior.
Please add a gather-to-visible-export regression with a real customModels entry and disabled/enabled controls, asserting the saved custom configuration is retained and becomes visible with the same intended metadata after re-enabling. Also document the disabled-provider/custom-model visibility contract; no documentation file changes despite the checked docs box. I have not changed provider settings or executed local product tests. This remains Draft for complete exact-head checks and final acceptance.
Summary
config.providers[name].disabled === true), any manually configured custom models (config.customModels) under that provider are now hidden from catalog visibility and client export instead of remaining visible in the Codex model picker.filterCatalogVisibleModelsnow checksconfig.providers[m.provider]?.disabled === truealongside existing blocklists and allowlists.gatherRoutedModelsUncachedguards the raw provider resolution so custom models under disabled providers do not inherit live/effective provider metadata.Verification
tests/codex-integration/selected-models.test.tsverifying that models (including custom models) belonging to disabled providers are omitted byfilterCatalogVisibleModels.bun test tests/codex-integration/selected-models.test.ts(15/15 passed).bun test tests/codex-integration/codex-catalog.test.ts(311/311 passed).Checklist
Agent Provenance
Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
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