Reflect accepted cloud model selections in TUI status (#61350)

## Why

After a cloud model selection was accepted for future turns, status displays still showed the session's serving model and reasoning effort. A reasoning-only `/model` command also resolved against that model instead of the accepted selection.

## What changed

- Show the accepted model's display name and reasoning effort in the status line, terminal title, and `/status`.
- Resolve reasoning-only `/model` commands against the selected model.
- Share the session-only model change confirmation between cloud and local selections, including reasoning effort and service tier when present.

## Testing

Extend cloud model admission coverage to check accepted selections in status output, reasoning-only commands, and unchanged status before acceptance and after session metadata clears the selection.

GitOrigin-RevId: cc50c2b0a98e884138ad2c2339c79c28ee3d346a
This commit is contained in:
Benjamin Carlsson
2026-11-13 18:48:50 +00:00
committed by copyberry
parent d87330d91e
commit f8580db472
7 changed files with 108 additions and 33 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ fn resolve_model_command(chat: &ChatWidget, args: &str) -> Result<ModelCommand,
let model_name = args
.model
.clone()
.unwrap_or_else(|| chat.current_model().to_owned());
.unwrap_or_else(|| chat.selected_model().to_owned());
let Some(model) =
chat.model_catalog.models.iter().find(|model| {
model.model == model_name && (args.model.is_none() || model.show_in_picker)