chore: fix types

This commit is contained in:
can1357
2026-05-25 12:42:26 +02:00
parent 3801b4ee32
commit 5eec35367f
2 changed files with 3 additions and 5 deletions
+1 -4
View File
@@ -609,10 +609,7 @@ function renderAgentProgress(
// long until the next attempt. Without this, the parent UI would just
// keep spinning while a child sleeps on a 3-hour provider rate-limit.
if (progress.retryState && progress.status === "running") {
const remainingMs = Math.max(
0,
progress.retryState.startedAtMs + progress.retryState.delayMs - Date.now(),
);
const remainingMs = Math.max(0, progress.retryState.startedAtMs + progress.retryState.delayMs - Date.now());
const waitLabel = remainingMs > 0 ? `in ${formatDuration(remainingMs)}` : "now";
const summary =
`retrying ${progress.retryState.attempt}/${progress.retryState.maxAttempts} ${waitLabel}: ` +