From 5eec35367f1d1eba2b87a24206f4e8eef9b442c9 Mon Sep 17 00:00:00 2001 From: can1357 Date: Mon, 25 May 2026 12:42:26 +0200 Subject: [PATCH] chore: fix types --- packages/coding-agent/src/config/settings-schema.ts | 3 ++- packages/coding-agent/src/task/render.ts | 5 +---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/coding-agent/src/config/settings-schema.ts b/packages/coding-agent/src/config/settings-schema.ts index e9188bb0a..89f46848e 100644 --- a/packages/coding-agent/src/config/settings-schema.ts +++ b/packages/coding-agent/src/config/settings-schema.ts @@ -81,7 +81,8 @@ export type StatusLineSegmentId = | "hostname" | "cache_read" | "cache_write" - | "session_name"; + | "session_name" + | "usage"; /** Submenu choice metadata. */ export type SubmenuOption = { diff --git a/packages/coding-agent/src/task/render.ts b/packages/coding-agent/src/task/render.ts index 6cb088466..9dbd3bbb9 100644 --- a/packages/coding-agent/src/task/render.ts +++ b/packages/coding-agent/src/task/render.ts @@ -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}: ` +