Repository navigation
fix: allow listed models with missing chat metadata - #199544
vincentkoc wants to merge 1 commit into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesAllow provider-listed models with missing chat metadata while retaining explicit capability denials and provider admission gates. Example: OpenCode Go lists deepseek-flash without public capability metadata.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Needs changes before merge - 1 item remains Keep this maintainer-authored PR open: it restores useful discovery behavior, but the permissive fallback also admits explicitly typed base-completion models as chat choices. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe shared provider-catalog normalizer turns account listings and upstream metadata into model rows consumed by pickers and agent execution. flowchart LR
A[Account model listing] --> C[Shared catalog normalizer]
B[Upstream metadata] --> C
C --> D[Prepared model catalog]
D --> E[Model picker]
D --> F[Agent model resolver]
F --> G[Provider transport]
Technical reviewBest possible solution: Keep permissive discovery in the existing normalizer while preserving explicit base-completion exclusions before applying the unknown-metadata fallback. Do we have a high-confidence way to reproduce the issue? Current-main source assigns inference.chat=false to unfamiliar ID-only rows, and the committed resolver regression exercises the resulting rejection; this read-only review ran no target code. Is this the best way to solve the issue? Changing the two existing projections is appropriately small and preserves provider gates, but the parser must distinguish explicitly declared base-completion kinds from genuinely missing metadata. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 932b13220bfd. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +4, Tests +71, Docs 0. Total +75 across 9 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 15, 2026, 4:44 AM ET / 09:44 UTC. |
|
Thanks for digging into this. #199998 (merged as 84a378c) takes on the same problem from a different angle, so this PR now overlaps and likely conflicts. What #199998 does
Why not the ID-pattern default: we replayed real public listings through both rules. Counts are models wrongly shown / wrongly hidden, counting only models whose capability we proved:
The ID pattern lets embeddings, rerankers and audio models through whenever their names don't match it. The providers already say what the models are, so reading those fields fixes both directions. I'd suggest closing this in favor of #199998. If any provider you saw this on still hides a working model on current main, a sample of its listing would show what's missing. |
|
Thanks for this, Vincent. #199998 (merged as 84a378c) fixes the same problem in the shared reader. A provider-listed model with no capability metadata is now treated as unknown, not |
What Problem This Solves
Fixes: models returned by a provider are hidden from chat selection or rejected before a request when their catalog rows omit chat-capability metadata.
User Impact
New account-listed models work without waiting for a catalog update. Explicit negative capabilities, known non-chat families, provider-specific request-shaping gates, authentication, model policy and account entitlements remain enforced.
Why This Change Was Made
Treat missing metadata as unknown rather than
chat: falsein the shared live-row and upstream-metadata projections. Keep the rejection guard at execution and fix the metadata it consumes. Update affected catalog and OpenCode consumer tests, including explicit-negative and embedding controls.This is the first of two small PRs. The separate OpenAI name-filter change in #199545 builds on this one; this PR does not change that provider's name policy.
Related: #198703 adds recognition of Together's explicit
type: "chat"; this change addresses missing capability metadata instead and does not replace that contributor's work.Evidence
node scripts/run-vitest.mjs src/plugin-sdk/provider-catalog-live-normalize.gate.test.ts src/plugin-sdk/provider-catalog-live-runtime.test.ts src/plugin-sdk/provider-catalog-live-upstream.test.ts src/agents/prepared-model-runtime.capture.test.ts src/agents/model-catalog.test.ts extensions/opencode/index.test.ts extensions/opencode-go/index.test.ts --maxWorkers=1. Checks ran under the shared heavy-build lock.f0e04c2f13af7d503ee4e304c27d8449965f564c; head19c09b60e08a9cdfb982687d3637c9c66f11ee7c. Commit content matches the reviewed local split.Full build, broad CI, live-provider requests and UI/channel end-to-end execution are not qualified. Draft for human review; no deployment or merge requested.