Skip to content

feat(provider): form editor, multi-model, and rename - #78

Merged
cursor[bot] merged 10 commits into
devfrom
cursor/providers-tui-form-32ea
Aug 26, 2026
Merged

cursor[bot] merged 10 commits into
devfrom
cursor/providers-tui-form-32ea

Conversation

@xjoker

@xjoker xjoker commented Aug 26, 2026 •

Copy link
Copy Markdown
Owner

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]] on provider.toml, each with optional reasoning and no_web_search
  • First model is default_model; launch --model selects another saved model
  • TUI Providers tab: a add, e edit, n rename, d remove. Models are added/removed inside the form (+/-/d, plus a visible + add model row), not on the list
  • Deleting a model in the form asks for confirmation (y / n or Esc)
  • CLI: --model is repeatable; --reasoning / --no-web-search attach to the most recent --model. provider rename
  • Older single-model files still load; provider-level model_reasoning_effort / web_search=disabled move onto that model
  • API key contract unchanged (hidden prompt / --api-key-stdin, never in argv)

TUI launch and shortcuts

  • o launches 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 or o in the picker starts Codex.
  • On the Providers list, Enter also opens that launch picker. e edits. Accounts Enter still opens the action menu.
  • l is re-login on Accounts (and batch). It never launches. Pressing l on Providers explains the launch key.
  • Add form types the alias immediately. Enter commits a field and continues to the next. Tab moves between fields; j/k move inside Models, which includes + add model.
  • Same action uses the same key on every tab so the letter matches the verb shown in the UI.

Palette

  • Every TUI style sets the designed dark background with the foreground, so a light terminal cannot wash yellow keys and cyan headings back to black-on-white.
  • The dashboard keeps that palette when NO_COLOR is set. CLI output still honors NO_COLOR.

Tests

Library TUI suite and clippy -D warnings are green, including popup background pin, form add-row/plus/tab-escape, model-remove confirmation, and keymap contracts (enter/o launch / e edit / l login).

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.

Open in Web Open in Cursor 

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
xjoker marked this pull request as ready for review August 26, 2026 10:13
cursoragent and others added 9 commits August 26, 2026 10:38
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]>
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]>
@cursor
cursor Bot merged commit c009a31 into dev Aug 26, 2026
4 checks passed
@xjoker
xjoker deleted the cursor/providers-tui-form-32ea branch September 9, 2026 01:32
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.

2 participants