agent page: show resolved model as the model badge's tooltip

mara: 'i cannot see if sonnet became claude-sonnet-5 or something
else.' /api/state now carries resolved_model (bus.last_resolved_model(),
already used by serve_common.rs's turn-stats rollup for the same
alias-vs-actual reason) and the model badge shows it as a title
tooltip, same pattern as the ctx/cost badges.
This commit is contained in:
iris 2026-08-30 14:23:41 +02:00 committed by mara
commit c73ce03244
4 changed files with 26 additions and 1 deletions

View file

@ -192,6 +192,7 @@ export function Root() {
stateTone={turnDef.tone}
stateTooltip={STATE_TOOLTIPS[effectiveTurnState]}
model={state.model}
resolvedModel={state.resolved_model ?? undefined}
availableModels={state.available_models}
onSelectModel={(name) => {
postModel(name).then(() => refresh());