Skip to content

fix(decider): list Gemini Decision 1 once in the OpenRouter picker - #84

Open
zereight wants to merge 1 commit into
mainfrom
fix/decider-duplicate-model
Open

zereight wants to merge 1 commit into
mainfrom
fix/decider-duplicate-model

Conversation

@zereight

@zereight zereight commented Dec 2, 2026 •

Copy link
Copy Markdown
Owner

What changed

OPENROUTER_DECIDER_MODELS in server/decider/openrouter-models.ts listed google/gemini-decision-1 twice. This PR drops the second entry (the last line of the list). Gemini Decision 1 stays where the fork put it, second after the default. One line, no other changes.

Why

The decision model picker offered Gemini Decision 1 twice under "recommended", and server/decider/openrouter-models.test.ts has failed on main since the 0.1.175 sync was merged (#42, 34e4f26, first failing run 2026-11-21), on Ubuntu and Windows.

mergeModels keeps every curated id that OpenRouter lists, in curated order, so the duplicate reached the picker. The two failing tests are the ones that check this:

FAIL … lists curated models first, in curated order and under the catalog's name, drops vanished ones, then the rest by name
AssertionError: expected [ …(5) ] to deeply equal [ …(4) ]
+     "id": "google/gemini-decision-1",
FAIL … is all decisions models, led by the default
AssertionError: expected 10 to be 11

This PR keeps the fork's position rather than upstream's, so the only visible change is that the copy disappears. After it, the file matches upstream apart from Gemini's place in the list.

How it was verified

macOS, Node 24.22.1 (the CI version). Before is main 8c67e9d.

Before shows Gemini twice among 11 recommended models; after shows it once, still second, among 10.

check Before (main 8c67e9d) After (this branch)
mergeModels with every curated id found (one-off script calling the real module) {"recommended":11,"gemini":2,"geminiAt":1} {"recommended":10,"gemini":1,"geminiAt":1}
pnpm exec vitest run server/decider/openrouter-models.test.ts Tests 2 failed | 12 passed (14) passes as part of the next row
pnpm exec vitest run server/decider/ Test Files 1 failed | 12 passed | 2 skipped (15), Tests 2 failed | 292 passed | 4 skipped (298) Test Files 13 passed | 2 skipped (15), Tests 294 passed | 4 skipped (298)

oxlint server/decider/openrouter-models.ts exits 0.

Not covered

  • The Settings picker on screen. The list it renders comes from mergeModels, which the script and tests above call directly.
  • A real OpenRouter catalog; the tests use fixtures.

Checklist

  • One cause, one PR: the duplicate from the 0.1.175 sync only
  • Before / after evidence
  • No new tests, no workflow changes

The fork added it second (243cd1e) and upstream added it last (milind-soni#5712);
the upstream sync (92ae72c) kept both, so the picker showed it twice.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant