From 5bfc0e436cf1fcb9a74e668e128dd30919a58a80 Mon Sep 17 00:00:00 2001 From: iamtoruk Date: Mon, 10 Aug 2026 10:37:10 -0700 Subject: [PATCH] fix(dash): render modelEfficiency one-shot rate verbatim, it is already a percent The payload's current.oneShotRate is a fraction but modelEfficiency[].oneShotRate is 0-100 (the TUI and menubar render it verbatim); the dash multiplied the latter by 100 again and showed 10000% / 8570% in the Model efficiency table. Caught live during the release surface sweep. --- dash/src/App.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dash/src/App.tsx b/dash/src/App.tsx index 088be97f..24d58518 100644 --- a/dash/src/App.tsx +++ b/dash/src/App.tsx @@ -172,7 +172,10 @@ function DeviceView({ payload, isRemote, unit }: { payload?: Payload; isRemote: rows={(c?.modelEfficiency ?? []).slice(0, 10).map((m) => ({ name: m.name, costPerEdit: usd(m.costPerEdit), - oneShot: `${Math.round(m.oneShotRate * 100)}%`, + // modelEfficiency.oneShotRate arrives as a PERCENT (0-100), + // unlike current.oneShotRate which is a fraction - the TUI and + // menubar render it verbatim; multiplying again showed 10000%. + oneShot: `${Math.round(m.oneShotRate)}%`, }))} />