diff --git a/packages/coding-agent/src/tui/footer.ts b/packages/coding-agent/src/tui/footer.ts index d9861d0d..b38f8936 100644 --- a/packages/coding-agent/src/tui/footer.ts +++ b/packages/coding-agent/src/tui/footer.ts @@ -186,12 +186,13 @@ export class FooterComponent implements Component { // Colorize context percentage based on usage let contextPercentStr: string; const autoIndicator = this.autoCompactEnabled ? " (auto)" : ""; + const contextPercentDisplay = `${contextPercent}% of ${formatTokens(contextWindow)}${autoIndicator}`; if (contextPercentValue > 90) { - contextPercentStr = theme.fg("error", `${contextPercent}%${autoIndicator}`); + contextPercentStr = theme.fg("error", contextPercentDisplay); } else if (contextPercentValue > 70) { - contextPercentStr = theme.fg("warning", `${contextPercent}%${autoIndicator}`); + contextPercentStr = theme.fg("warning", contextPercentDisplay); } else { - contextPercentStr = `${contextPercent}%${autoIndicator}`; + contextPercentStr = contextPercentDisplay; } statsParts.push(contextPercentStr);