From a69eb78158879ed92c0fc5337e4a48053cf0a60a Mon Sep 17 00:00:00 2001 From: Sawyer Date: Tue, 29 Sep 2026 22:21:33 -0700 Subject: [PATCH] feat(web): one worker-status source drives the sidebar orbit and bench pill (CL-9569) --- apps/web/src/bench/bench-pill.tsx | 12 ++++++-- apps/web/src/pages/workbench-page.tsx | 6 ++-- apps/web/src/worker-status.ts | 44 +++++++++++++++++++++++++++ 3 files changed, 57 insertions(+), 5 deletions(-) create mode 100644 apps/web/src/worker-status.ts diff --git a/apps/web/src/bench/bench-pill.tsx b/apps/web/src/bench/bench-pill.tsx index b84232c15..cf3b70d58 100644 --- a/apps/web/src/bench/bench-pill.tsx +++ b/apps/web/src/bench/bench-pill.tsx @@ -1,5 +1,6 @@ import { CaretDown } from "@/lib/icons"; import { IdentityAvatar } from "@/chat/avatar"; +import type { WorkerStatus } from "../worker-status"; /** Frosted pill centered over the thread: the bench's worker, its name and * live status. Toggles the bench drawer. */ @@ -12,7 +13,7 @@ export function BenchPill({ }: { readonly benchName: string; readonly worker: { readonly id: string; readonly name: string } | undefined; - readonly status: string; + readonly status: WorkerStatus; readonly open: boolean; readonly onToggle: () => void; }) { @@ -25,10 +26,15 @@ export function BenchPill({ onClick={onToggle} > {worker === undefined ? null : ( - + )} {benchName} - {status} + {status.text}