fix: move probe errors below table

This commit is contained in:
Peter Steinberger
2026-01-24 00:32:45 +00:00
parent ed560e466f
commit f7dc27f2d0
2 changed files with 13 additions and 3 deletions

View File

@@ -22,6 +22,7 @@ Docs: https://docs.clawd.bot
- CLI: hide auth probe timeout warnings from embedded runs.
- CLI: render auth probe results as a table in `clawdbot models status`.
- CLI: suppress probe-only embedded logs unless `--verbose` is set.
- CLI: move auth probe errors below the table to reduce wrapping.
- 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`).
- Media: preserve PNG alpha when possible; fall back to JPEG when still over size cap. (#1491) Thanks @robbyczgw-cla.

View File

@@ -584,7 +584,6 @@ export async function modelsStatusCommand(
const rows = sorted.map((result) => {
const status = colorize(rich, statusColor(result.status), result.status);
const latency = formatProbeLatency(result.latencyMs);
const detail = result.error ? colorize(rich, theme.muted, result.error) : "";
const modelLabel = result.model ?? `${result.provider}/-`;
const modeLabel = result.mode ? ` ${colorize(rich, theme.muted, `(${result.mode})`)}` : "";
const profile = `${colorize(rich, theme.accent, result.label)}${modeLabel}`;
@@ -593,7 +592,6 @@ export async function modelsStatusCommand(
Model: colorize(rich, theme.heading, modelLabel),
Profile: profile,
Status: statusLabel,
Detail: detail,
};
});
runtime.log(
@@ -603,11 +601,22 @@ export async function modelsStatusCommand(
{ key: "Model", header: "Model", minWidth: 18 },
{ key: "Profile", header: "Profile", minWidth: 24 },
{ key: "Status", header: "Status", minWidth: 12 },
{ key: "Detail", header: "Detail", minWidth: 16, flex: true },
],
rows,
}).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)));
}
}