diff --git a/src/resources/extensions/gsd/auto-dashboard.ts b/src/resources/extensions/gsd/auto-dashboard.ts index f2c77d168..d0369bd37 100644 --- a/src/resources/extensions/gsd/auto-dashboard.ts +++ b/src/resources/extensions/gsd/auto-dashboard.ts @@ -289,7 +289,7 @@ function refreshLastCommit(basePath: string): void { const sep = raw.indexOf("|"); if (sep > 0) { cachedLastCommit = { - timeAgo: raw.slice(0, sep).replace(/ ago$/, "").replace(/ /g, ""), + timeAgo: raw.slice(0, sep).replace(/ ago$/, ""), message: raw.slice(sep + 1), }; } @@ -505,6 +505,20 @@ export function updateProgressWidget( : ""; lines.push(rightAlign(headerLeft, headerRight, width)); + // Show health signal details when degraded (yellow/red) + if (score.level !== "green" && score.signals.length > 0 && widgetMode !== "min") { + // Show up to 3 most relevant signals in compact form + const topSignals = score.signals + .filter(s => s.kind === "negative") + .slice(0, 3); + if (topSignals.length > 0) { + const signalStr = topSignals + .map(s => theme.fg("dim", s.label)) + .join(theme.fg("dim", " · ")); + lines.push(`${pad} ${signalStr}`); + } + } + // ── Gather stats (needed by multiple modes) ───────────────────── const cmdCtx = accessors.getCmdCtx(); let totalInput = 0;