fix: inline auth probe errors in status table

This commit is contained in:
Peter Steinberger
2026-01-24 01:37:00 +00:00
parent 00fd57b8f5
commit 00ae21bed2
2 changed files with 4 additions and 13 deletions

View File

@@ -29,6 +29,7 @@ Docs: https://docs.clawd.bot
- CLI: prevent ANSI color bleed when table cells wrap. - CLI: prevent ANSI color bleed when table cells wrap.
- CLI: explain when auth profiles are excluded by auth.order in probe details. - CLI: explain when auth profiles are excluded by auth.order in probe details.
- CLI: drop the em dash when the banner tagline wraps to a second line. - CLI: drop the em dash when the banner tagline wraps to a second line.
- CLI: inline auth probe errors in status rows to reduce wrapping.
- Linux: include env-configured user bin roots in systemd PATH and align PATH audits. (#1512) Thanks @robbyczgw-cla. - Linux: include env-configured user bin roots in systemd PATH and align PATH audits. (#1512) Thanks @robbyczgw-cla.
- TUI: render Gateway slash-command replies as system output (for example, `/context`). - TUI: render Gateway slash-command replies as system output (for example, `/context`).
- Media: preserve PNG alpha when possible; fall back to JPEG when still over size cap. (#1491) Thanks @robbyczgw-cla. - Media: preserve PNG alpha when possible; fall back to JPEG when still over size cap. (#1491) Thanks @robbyczgw-cla.

View File

@@ -587,7 +587,9 @@ export async function modelsStatusCommand(
const modelLabel = result.model ?? `${result.provider}/-`; const modelLabel = result.model ?? `${result.provider}/-`;
const modeLabel = result.mode ? ` ${colorize(rich, theme.muted, `(${result.mode})`)}` : ""; const modeLabel = result.mode ? ` ${colorize(rich, theme.muted, `(${result.mode})`)}` : "";
const profile = `${colorize(rich, theme.accent, result.label)}${modeLabel}`; const profile = `${colorize(rich, theme.accent, result.label)}${modeLabel}`;
const statusLabel = `${status}${colorize(rich, theme.muted, ` · ${latency}`)}`; const detail = result.error?.trim();
const detailLabel = detail ? `\n${colorize(rich, theme.muted, `${detail}`)}` : "";
const statusLabel = `${status}${colorize(rich, theme.muted, ` · ${latency}`)}${detailLabel}`;
return { return {
Model: colorize(rich, theme.heading, modelLabel), Model: colorize(rich, theme.heading, modelLabel),
Profile: profile, Profile: profile,
@@ -605,18 +607,6 @@ export async function modelsStatusCommand(
rows, rows,
}).trimEnd(), }).trimEnd(),
); );
const detailRows = sorted.filter((result) => Boolean(result.error?.trim()));
if (detailRows.length > 0) {
runtime.log("");
runtime.log(colorize(rich, theme.muted, "Details"));
for (const result of detailRows) {
const modelLabel = colorize(rich, theme.heading, result.model ?? `${result.provider}/-`);
const profileLabel = colorize(rich, theme.accent, result.label);
runtime.log(
`- ${modelLabel} ${profileLabel}: ${colorize(rich, theme.muted, result.error ?? "")}`,
);
}
}
runtime.log(colorize(rich, theme.muted, describeProbeSummary(probeSummary))); runtime.log(colorize(rich, theme.muted, describeProbeSummary(probeSummary)));
} }
} }