fix(combos): show embedding/rerank models and disambiguate duplicate names in builder options (#6975, #6957) - #6991
Merged
Conversation
…names in builder options (#6975, #6957) Removes the leftover chat-only isChatCapable gate from addModelOption() (#6975) and adds a name-disambiguation pass at the end of buildModelOptions() so distinct model ids sharing the same upstream display name fall back to their id (#6957). Both proven with TDD repro tests (RED->GREEN).
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
This was referenced Jul 12, 2026
HouMinXi
pushed a commit
to HouMinXi/OmniRoute
that referenced
this pull request
Aug 2, 2026
…names in builder options (diegosouzapw#6975, diegosouzapw#6957) (diegosouzapw#6991) Removes the leftover chat-only isChatCapable gate from addModelOption() (diegosouzapw#6975) and adds a name-disambiguation pass at the end of buildModelOptions() so distinct model ids sharing the same upstream display name fall back to their id (diegosouzapw#6957). Both proven with TDD repro tests (RED->GREEN).
muhamadgalihsaputra
pushed a commit
to niyatna/NiyatnaRoute
that referenced
this pull request
Sep 27, 2026
…names in builder options (diegosouzapw#6975, diegosouzapw#6957) (diegosouzapw#6991) Removes the leftover chat-only isChatCapable gate from addModelOption() (diegosouzapw#6975) and adds a name-disambiguation pass at the end of buildModelOptions() so distinct model ids sharing the same upstream display name fall back to their id (diegosouzapw#6957). Both proven with TDD repro tests (RED->GREEN).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #6975
Closes #6957
Root cause
#6975:
addModelOption()insrc/lib/combos/builderOptions.tscalledisChatCapable(input.supportedEndpoints)and silently dropped any model whosesupportedEndpointsdidn't include"chat"— a leftover chat-only gate from before combo routing supported embeddings/rerank. The backend already fully supports embedding/rerank combos (dimension-conflict guard,handleComboChat()), so this was purely a listing bug hiding embeddings-only (JinaAI, Gemini auto-imported, OpenRouter custom) and rerank-only models fromGET /api/combos/builder/options.#6957: no literal
model.idcollision exists anywhere in the merge pipeline (verified against the reporter's real payload — all 64 ids unique). The actual bug is thatComboBuilderModelOption.nameis copied straight from the upstream-syncedmodel.namewith no cross-entry uniqueness check, and providers like Mistral assign the same canonical name to multiple distinct ids (e.g.codestral-2508,codestral-latest,mistral-code-fim-latest,mistral-code-latestall render as"codestral-2508 · imported"), making distinct models look duplicated and hiding-latestaliases behind their base model's label.Fix
isChatCapable()gate (and the now-unused function itself, since it had no other callers) fromaddModelOption().disambiguateCollidingModelNames()pass at the end ofbuildModelOptions(), run after all 4 merge loops (synced/built-in/custom/fallback) finish populating the map: any name shared by 2+ distinct ids falls back to the model's ownidas the display label. Display-only —id/qualifiedModelused for routing are untouched.Evidence (TDD, Hard Rule #18)
Both fixes were proven with failing-then-passing repro tests reusing the plan-file reproductions:
tests/unit/combo-builder-options-route.test.tshad a case (text-embedding-hidden) that explicitly encoded the removed chat-only gate as expected behavior — renamed totext-embedding-visibleand flipped the assertion totrue, since embeddings-only models are now intentionally listed (#6975).Gates run
npm run typecheck:core— cleannpx eslint --suppressions-location config/quality/eslint-suppressions.json <changed files>— 0 errors on every touched file (pre-existing warnings only, unrelated to this change)node scripts/check/check-file-size.mjs— no violation on touched files (2 pre-existing base-red violations on unrelated files)node scripts/check/check-complexity.mjs/check-cognitive-complexity.mjs— both OK at baseline (2056 / 890 violations, unchanged)node scripts/check/check-changelog-integrity.mjs— OK