This repository was archived by the owner on May 9, 2026. It is now read-only.
feat: agent 0.12.12 (curated OpenRouter top 10, wizard redesign, fix dropdown wipe)#95
Merged
Merged
Conversation
…dropdown wipe) The OpenRouter dropdown dumped 300+ models sorted cheapest-first, which was noise, and selecting a model often wiped itself the moment the live fetch resolved because the async re-render passed ACTIVE_MODEL back to setOptions instead of the user's current pick. Curated top 10 in src/model.ts (CURATED_OPENROUTER_MODELS), grouped into Frontier / Balanced / Fast / Specialized. Live fetch still runs so the pricing + context chips stay accurate, but only the curated slugs render as <optgroup>-labelled options. Custom slugs still work via config.json. Dropdown bug fixed with selectionFor() reading modelSel.value on same-provider re-renders and a loadToken request-race guard. Wizard page redesigned: 640px card, 40px/44px padding, provider+model unstacked into full-width rows, sectioned blocks with dividers, larger typography, custom chevron on <select>. Cramped 560px two-column layout is gone. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
<optgroup>-labelled options. Custom slugs still work viaconfig.json./openrouter-modelsfetch resolved, because the async re-render passed the page-load-timeACTIVE_MODELback tosetOptionsinstead of the user's current pick. NewselectionFor()helper readsmodelSel.valueon same-provider re-renders; aloadTokenrequest-race guard also prevents a slow fetch landing after the user has already flipped providers.<select>, actions row gets its own divider. Cramped 560px two-column layout is gone.Test plan
pnpm run typecheckcleanpnpm run buildcleannode scripts/smoke-normalize-model.mjsstill passes (23/23)curl http://127.0.0.1:4242/against a throwaway$HOMEpreview returns the new HTML withCURATED_OPENROUTER,Frontier,selectionFor,loadToken,max-width: 640, and two.sectionblocks🤖 Generated with Claude Code