From 0375912c2b022ce75bb3b2d1efee8fe3b1f17f1f Mon Sep 17 00:00:00 2001 From: Eyejoker Date: Tue, 24 Mar 2026 01:29:32 +0900 Subject: [PATCH] fix: render reset times in dashboard usage rows --- src/unified-dashboard.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/unified-dashboard.ts b/src/unified-dashboard.ts index 6cc35b0..4e333b8 100644 --- a/src/unified-dashboard.ts +++ b/src/unified-dashboard.ts @@ -697,7 +697,10 @@ async function buildUsageContent(): Promise { row.d7pct >= 0 ? `${bar(row.d7pct)} ${String(row.d7pct).padStart(3)}%` : ' — '; - lines.push(`${padName(row.name)}${h5} ${d7}`); + const reset = row.h5reset || row.d7reset + ? ` ${row.h5reset || ''}${row.d7reset ? ` / ${row.d7reset}` : ''}` + : ''; + lines.push(`${padName(row.name)}${h5} ${d7}${reset}`); } lines.push('```'); } else { @@ -812,9 +815,7 @@ async function refreshAllCodexAccountUsage(): Promise { } const pct = Math.round(maxH5); const d7Pct = Math.round(maxD7); - const resetStr = h5Reset - ? formatResetRemaining(h5Reset) - : undefined; + const resetStr = h5Reset ? formatResetRemaining(h5Reset) : undefined; const resetD7Str = d7Reset ? formatResetRemaining(d7Reset) : undefined;