+ {hasContext ? (
+ <>
+
+ {t("contextWindow")}
+
+ {formatContextWindowPercent(contextPercent)}
+
+
+
+ {/* Dropped entirely rather than shown as "--": an agent can
+ state its occupancy as a percentage without ever naming the
+ two token counts behind it (qoder does exactly that once it
+ has redacted them), and a labelled row with nothing in it
+ reads as a figure that failed to load rather than one that
+ was never reported. */}
+ {contextUsed != null && contextMax != null ? (
+
+ {t("usedMax")}
+
+ {`${formatTokenCount(contextUsed)} / ${formatTokenCount(contextMax)}`}
+
+
+ ) : null}
+ >
+ ) : null}
+ {/* Sits with the context figures rather than under the token
+ breakdown: it is a ratio, not a token count. */}
+ {cacheHit != null ? (
+
+ {t("cacheHit")}
+
+ {formatPercent(cacheHit, CACHE_HIT_RATE_DIGITS)}
+
+
+ ) : null}
+
+ ) : null}
+ {hasTokenSection ? (
+ <>
+