feat(status-line): add throughput icon and simplify cache segments

This commit is contained in:
luk
2026-07-02 00:24:55 +01:00
parent cc78244217
commit 308eabc6b3
3 changed files with 11 additions and 4 deletions
@@ -379,7 +379,7 @@ const tokenRateSegment: StatusLineSegment = {
const { tokensPerSecond } = ctx.usageStats;
if (!tokensPerSecond) return { content: "", visible: false };
const content = withIcon(theme.icon.output, `${tokensPerSecond.toFixed(1)}/s`);
const content = withIcon(theme.icon.throughput, `${tokensPerSecond.toFixed(1)}/s`);
return { content: theme.fg("statusLineOutput", content), visible: true };
},
};
@@ -498,7 +498,7 @@ const cacheReadSegment: StatusLineSegment = {
const { cacheRead } = ctx.usageStats;
if (!cacheRead) return { content: "", visible: false };
const parts = [theme.icon.cache, theme.icon.output, formatNumber(cacheRead)].filter(Boolean);
const parts = [theme.icon.cache, formatNumber(cacheRead)].filter(Boolean);
const content = parts.join(" ");
return { content: theme.fg("statusLineSpend", content), visible: true };
},
@@ -510,7 +510,7 @@ const cacheWriteSegment: StatusLineSegment = {
const { cacheWrite } = ctx.usageStats;
if (!cacheWrite) return { content: "", visible: false };
const parts = [theme.icon.cache, theme.icon.input, formatNumber(cacheWrite)].filter(Boolean);
const parts = [theme.icon.cache, formatNumber(cacheWrite)].filter(Boolean);
const content = parts.join(" ");
return { content: theme.fg("statusLineOutput", content), visible: true };
},