Repository navigation
feat(provider): form editor, multi-model, and rename - #78
Merged
Merged
Conversation
Replace the status-bar add wizard with a single TUI form for add and edit. A provider now stores several models, each with its own reasoning effort and web_search setting. Alias is the only name. Rename is available in the TUI and as `provider rename`. Launch `--model` selects a saved model; older single-model files still load. Co-authored-by: lolitaupdate <[email protected]>
xjoker
marked this pull request as ready for review
August 26, 2026 10:13
Clap treated the flag as a single SetTrue, so attaching it to more than one --model failed before models_from_cli_args ran. Co-authored-by: lolitaupdate <[email protected]>
Bring origin/dev TUI launch onto the form/multi-model branch. Providers keep Enter for edit; l opens a saved-model picker. Reasoning changes in the picker apply to that session only and are not written back. Co-authored-by: lolitaupdate <[email protected]>
l stays re-login on Accounts. Binding it to provider launch made the same letter mean opposite actions. Enter still opens the selected row (edit on Providers, menu on Accounts). Co-authored-by: lolitaupdate <[email protected]>
Popup, form, and menu spans only set foreground, so a light terminal reset the background and the yellow keys vanished. Shared theme now pins the designed dark background on every style. On Providers, Enter/o launches (e edits). Add types the alias immediately; Enter walks fields until Models, then stays so s/+/w work. Co-authored-by: lolitaupdate <[email protected]>
CLI still honors NO_COLOR. The full-screen TUI is the interface, not optional color on text, so crossterm must not strip every style. Co-authored-by: lolitaupdate <[email protected]>
Tab no longer traps the cursor inside Models. A `+ add model` row is part of the list; Enter/`+`/`a` start a new id, and `d`/`-` remove. Co-authored-by: lolitaupdate <[email protected]>
d/-/Delete opens a Confirm popup naming the model. y removes it; n or Esc keeps it. The last model still cannot be deleted. Co-authored-by: lolitaupdate <[email protected]>
Co-authored-by: lolitaupdate <[email protected]>
Today already published 20260826.1.0-dev; bump N so self-update --dev can install this rolling release. Co-authored-by: lolitaupdate <[email protected]>
cursor Bot
pushed a commit
that referenced
this pull request
Aug 26, 2026
Includes rustfmt for CI and version bump to 20260826.2.0 for the next rolling dev release. Co-authored-by: lolitaupdate <[email protected]>
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.
A provider is one endpoint + key, not one model. Add/edit happens in a single TUI form instead of the six-step status-bar wizard. Alias is the only name.
Behavior
[[models]]onprovider.toml, each with optionalreasoningandno_web_searchdefault_model;launch --modelselects another saved modelaadd,eedit,nrename,dremove. Models are added/removed inside the form (+/-/d, plus a visible+ add modelrow), not on the listy/nor Esc)--modelis repeatable;--reasoning/--no-web-searchattach to the most recent--model.provider renamemodelfiles still load; provider-levelmodel_reasoning_effort/web_search=disabledmove onto that model--api-key-stdin, never in argv)TUI launch and shortcuts
olaunches Codex on both tabs. Accounts starts the selected ChatGPT profile. Providers opens a picker for a saved model and a one-shot reasoning override; Enter oroin the picker starts Codex.eedits. Accounts Enter still opens the action menu.lis re-login on Accounts (and batch). It never launches. Pressinglon Providers explains the launch key.j/kmove inside Models, which includes+ add model.Palette
NO_COLORis set. CLI output still honorsNO_COLOR.Tests
Library TUI suite and
clippy -D warningsare green, including popup background pin, form add-row/plus/tab-escape, model-remove confirmation, and keymap contracts (enter/olaunch /eedit /llogin).Confirm popup before removing a model
After y, only one model remains
tui_form_confirm_remove_model.mp4
To show artifacts inline, enable in settings.