feat(providers): show status spinner message

This commit is contained in:
Peter Steinberger
2026-01-08 23:30:38 +00:00
parent 7ece3717e6
commit 561fa99d95

View File

@@ -372,10 +372,15 @@ export async function providersStatusCommand(
runtime: RuntimeEnv = defaultRuntime,
) {
const timeoutMs = Number(opts.timeout ?? 10_000);
const statusLabel = opts.probe
? "Checking provider status (probe)…"
: "Checking provider status…";
const shouldLogStatus = opts.json !== true && !process.stderr.isTTY;
if (shouldLogStatus) runtime.log(statusLabel);
try {
const payload = await withProgress(
{
label: "Checking provider status…",
label: statusLabel,
indeterminate: true,
enabled: opts.json !== true,
},