fix: show provider/model labels in TUI

This commit is contained in:
Peter Steinberger
2026-01-16 01:13:14 +00:00
parent bb665bf22c
commit f8f319713f
7 changed files with 12 additions and 3 deletions

View File

@@ -37,7 +37,10 @@ export function formatStatusSummary(summary: GatewayStatusSummary) {
if (sessionPath) lines.push(`Session store: ${sessionPath}`);
const defaults = summary.sessions?.defaults;
const defaultModel = defaults?.model ?? "unknown";
const defaultModel =
defaults?.model && defaults?.modelProvider
? `${defaults.modelProvider}/${defaults.model}`
: defaults?.model ?? "unknown";
const defaultCtx =
typeof defaults?.contextTokens === "number"
? ` (${formatTokenCount(defaults.contextTokens)} ctx)`