fix: render in-flight count as static white (remove blink pulse)

This commit is contained in:
2026-08-14 12:09:57 -06:00
parent 07fea457f1
commit ca37a690ca
3 changed files with 15 additions and 37 deletions
+1 -3
View File
@@ -19,7 +19,6 @@ export interface InflightRenderOptions {
state?: ModelRuntimeState;
count: number;
offline: boolean;
pulse: boolean;
history?: number[];
}
@@ -49,11 +48,10 @@ export function renderInflight(opts: InflightRenderOptions): string {
const bg = opts.state === "ready" ? (isActive ? "#8b2626" : "#1e6b34") : opts.state === "loading" ? "#8a6d1d" : "#3a3a3a";
const center = isActive ? `${opts.count}` : opts.state === "ready" ? "IDLE" : opts.state === "loading" ? "LOADING" : "OFF";
const centerSize = isActive ? 24 : 16;
const opacity = isActive && opts.pulse ? 0.55 : 1;
const parts: string[] = [
centerText(name, 12, 7, "normal", "#ffffff"),
centerText(center, 40, centerSize, "bold", "#ffffff", opacity),
centerText(center, 40, centerSize, "bold", "#ffffff"),
];
if (opts.state === "ready") {