fix(tui): pin anyrouter/auto in the inline model picker - #40
Merged
Conversation
duyet
marked this pull request as ready for review
September 3, 2026 06:06
Contributor
anyr size and startupStartup is wall time for a cold Size budget:
Budget check: ok raw timings[
{
"asset": "anyr-darwin-arm64",
"kind": "native",
"path": "/Users/runner/work/cli/cli/anyr-darwin-arm64",
"bytes": 2867016,
"size": "2.7 MiB",
"version": "0.1.11 (built 2026-09-03 08:29:04)",
"target": "aarch64-apple-darwin",
"os": "macos-latest",
"startup_version": {
"n": 21,
"min_ms": 2.55,
"median_ms": 2.68,
"p95_ms": 2.95,
"mean_ms": 2.74
},
"startup_help": {
"n": 21,
"min_ms": 2.29,
"median_ms": 2.37,
"p95_ms": 2.45,
"mean_ms": 2.38
}
},
{
"asset": "anyr-darwin-x86_64",
"kind": "native",
"path": "/Users/runner/work/cli/cli/anyr-darwin-x86_64",
"bytes": 3077712,
"size": "2.9 MiB",
"version": "0.1.11 (built 2026-09-03 08:29:11)",
"target": "x86_64-apple-darwin",
"os": "macos-latest",
"startup_version": {
"n": 21,
"min_ms": 27.56,
"median_ms": 33.27,
"p95_ms": 38.37,
"mean_ms": 32.97
},
"startup_help": {
"n": 21,
"min_ms": 26.77,
"median_ms": 30.75,
"p95_ms": 33.81,
"mean_ms": 30.58
}
},
{
"asset": "anyr-linux-arm64",
"kind": "native",
"path": "/home/runner/work/cli/cli/anyr-linux-arm64",
"bytes": 2823208,
"size": "2.7 MiB",
"version": "0.1.11 (built 2026-09-03 08:28:53)",
"target": "aarch64-unknown-linux-gnu",
"os": "ubuntu-24.04-arm",
"startup_version": {
"n": 21,
"min_ms": 0.7,
"median_ms": 0.77,
"p95_ms": 0.88,
"mean_ms": 0.78
},
"startup_help": {
"n": 21,
"min_ms": 0.74,
"median_ms": 0.81,
"p95_ms": 0.88,
"mean_ms": 0.81
}
},
{
"asset": "anyr-linux-x86_64",
"kind": "native",
"path": "/home/runner/work/cli/cli/anyr-linux-x86_64",
"bytes": 3175936,
"size": "3.0 MiB",
"version": "0.1.11 (built 2026-09-03 08:29:02)",
"target": "x86_64-unknown-linux-gnu",
"os": "ubuntu-latest",
"startup_version": {
"n": 21,
"min_ms": 0.72,
"median_ms": 0.74,
"p95_ms": 0.8,
"mean_ms": 0.75
},
"startup_help": {
"n": 21,
"min_ms": 0.7,
"median_ms": 0.73,
"p95_ms": 0.83,
"mean_ms": 0.75
}
},
{
"asset": "anyr-windows-x86_64.exe",
"kind": "native",
"path": "D:\\a\\cli\\cli\\anyr-windows-x86_64.exe",
"bytes": 2630656,
"size": "2.5 MiB",
"version": "0.1.11 (built 2026-09-03T08:31:24Z)",
"target": "x86_64-pc-windows-msvc",
"os": "windows-latest",
"startup_version": {
"n": 21,
"min_ms": 7.12,
"median_ms": 7.3,
"p95_ms": 7.79,
"mean_ms": 7.35
},
"startup_help": {
"n": 21,
"min_ms": 6.94,
"median_ms": 7.11,
"p95_ms": 7.28,
"mean_ms": 7.13
}
},
{
"asset": "anyr.wasm",
"kind": "wasm",
"path": "/home/runner/work/cli/cli/target/wasm-pkg/anyr_cli_bg.wasm",
"bytes": 180483,
"size": "176.3 KiB",
"version": "wasm",
"target": "wasm32-unknown-unknown",
"os": ""
}
] |
The model picker was filling from a usage-sorted catalog and labeling auto as "most used", so anyrouter/auto could not be selected. Pin that preset first, sort remaining catalog ids by name, and dump the picker with --dump-tui. Co-authored-by: Duyet Le <me@duyet.net> Co-authored-by: duyetbot <bot@duyet.net>
Dump, models use, launch dry-run, and ox-alpha --yolo artifacts showing the picker catalog is the preset, not a most-used ranking. Co-authored-by: Duyet Le <me@duyet.net> Co-authored-by: duyetbot <bot@duyet.net>
cursor
Bot
force-pushed
the
cursor/model-picker-anyrouter-auto-4f74
branch
from
September 3, 2026 08:26
08bdf79 to
da92450
Compare
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 #37.
Rebased onto
mainafter #39 (97d3370). Per-agent--agentbind/launch from #39 is kept. This PR still only pinsanyrouter/autoin the picker (no most-used dump).Summary
The inline model picker now treats
anyrouter/autoas a first-class selectable preset. It no longer leads with or dumps a most-used / usage ranking as the picker contents.anyrouter/auto(typeahead matches that label).anyr models --dump-tuiprints one picker frame for tests and pipes.anyr models use anyrouter/autopersists the preset without a catalog fetch.anyr claude --model "stealth/ox-alpha[1m]" --yolois unchanged (covered by dry-run tests).--pick --agentuses the same picker (preset available without a catalog fetch).Does not change pick-agent-then-settings chrome (#36) or the update spinner (#38).
Evidence
Isolated
control-anyrrun (ANYR_NO_CATALOG=1):anyr models --dump-tui→◆ anyrouter/autoonly; nomost usedanyr models use anyrouter/auto→Saved default model anyrouter/autoanyr claude --dry-run --yes→ANTHROPIC_MODEL=anyrouter/autocargo test --locked --lib --test cli: passed after rebase.Checklist