Repository navigation
feat(cli): show recent models in the model selector - #259
Open
xuxujo97-coder wants to merge 1 commit into
Open
xuxujo97-coder wants to merge 1 commit into
xuxujo97-coder wants to merge 1 commit into
Conversation
xuxujo97-coder
requested review from
MelodyVAR,
Uking-xxx,
ZouR-Ma and
liuedcson
as code owners
October 19, 2026 04:40
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.
Problem
Switching back to a recently used model requires searching or navigating the full model list each time.
Changes
/modelselections, and model cycling. Repeated selections move the provider/model pair to the front.packages/tuiis unchanged.Behavior and compatibility
The optional global
recentModelssetting stores only provider/id pairs. Missing or malformed history is ignored, project overrides do not replace global history, and unavailable references are hidden without deleting them. Existing configurations need no migration.Startup defaults, thinking settings, model cycling order, fuzzy search ranking, and default-model shortcuts remain unchanged. Startup, restoration, cancellation, and failed selections do not record history. External active-model configuration remains separate from wrapped global history.
Validation
npm run check: passed, including formatting, TypeScript, dependency direction, UI boundaries, and public-boundary checks; no additional formatter changes.TMPDIR=/tmp ./test.sh: passed across the repository on macOS. Coding-agent: 330 files and 4,760 tests passed; CLI: 90 files and 699 tests passed. Existing credential-dependent and unavailable-PowerShell cases remained skipped../test.shrun hit the macOS Unix socket path-length limit in a subprocess test. Re-running with a short temporary directory passed without changing or skipping the test.git diff --check: passed. The branch contains one feature commit and only six intended files, based on publicmain.Limitations
Real-terminal manual interaction and standalone-binary behavior have not been verified for this change. CI and the required non-author maintainer review are pending.
This pull request description was generated with AI assistance.