fix: move probe errors below table
This commit is contained in:
@@ -22,6 +22,7 @@ Docs: https://docs.clawd.bot
|
|||||||
- CLI: hide auth probe timeout warnings from embedded runs.
|
- CLI: hide auth probe timeout warnings from embedded runs.
|
||||||
- CLI: render auth probe results as a table in `clawdbot models status`.
|
- CLI: render auth probe results as a table in `clawdbot models status`.
|
||||||
- CLI: suppress probe-only embedded logs unless `--verbose` is set.
|
- 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.
|
- 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.
|
||||||
|
|||||||
@@ -584,7 +584,6 @@ export async function modelsStatusCommand(
|
|||||||
const rows = sorted.map((result) => {
|
const rows = sorted.map((result) => {
|
||||||
const status = colorize(rich, statusColor(result.status), result.status);
|
const status = colorize(rich, statusColor(result.status), result.status);
|
||||||
const latency = formatProbeLatency(result.latencyMs);
|
const latency = formatProbeLatency(result.latencyMs);
|
||||||
const detail = result.error ? colorize(rich, theme.muted, result.error) : "";
|
|
||||||
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}`;
|
||||||
@@ -593,7 +592,6 @@ export async function modelsStatusCommand(
|
|||||||
Model: colorize(rich, theme.heading, modelLabel),
|
Model: colorize(rich, theme.heading, modelLabel),
|
||||||
Profile: profile,
|
Profile: profile,
|
||||||
Status: statusLabel,
|
Status: statusLabel,
|
||||||
Detail: detail,
|
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
runtime.log(
|
runtime.log(
|
||||||
@@ -603,11 +601,22 @@ export async function modelsStatusCommand(
|
|||||||
{ key: "Model", header: "Model", minWidth: 18 },
|
{ key: "Model", header: "Model", minWidth: 18 },
|
||||||
{ key: "Profile", header: "Profile", minWidth: 24 },
|
{ key: "Profile", header: "Profile", minWidth: 24 },
|
||||||
{ key: "Status", header: "Status", minWidth: 12 },
|
{ key: "Status", header: "Status", minWidth: 12 },
|
||||||
{ key: "Detail", header: "Detail", minWidth: 16, flex: true },
|
|
||||||
],
|
],
|
||||||
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)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user