feat(panel): add step anomaly diagnostics, >=100 tok/s integer speed formatting, and capsule alignment fix

This commit is contained in:
fish
2026-11-19 22:28:39 +09:00
parent dfba5ead7b
commit 4a4e483209
20 changed files with 3546 additions and 143 deletions
@@ -9,6 +9,7 @@ import { h, patchAttr, patchText } from '../core/domPatch.js';
import {
formatCachePct,
formatMetric,
formatSpeedMetric,
formatTokens,
formatUsd,
getCacheToneClass,
@@ -191,7 +192,7 @@ export const STEP_COLUMN_REGISTRY = Object.freeze({
return { td, refs: { wrapEl, speedMain, speedReason: null } };
},
updateCell: (refs, st, ctx) => {
patchText(refs.speedMain, formatMetric(st.tokPerSec, ' tok/s'));
patchText(refs.speedMain, formatSpeedMetric(st.tokPerSec, ' tok/s'));
const hasValidSpeed =
st.tokPerSec != null && Number.isFinite(Number(st.tokPerSec)) && Number(st.tokPerSec) > 0;
const toneCls =