fix(tui): show context window usage in footer (#5679)

* fix(tui): show context window usage in footer

* refactor(tui): simplify context footer usage
This commit is contained in:
chengyongru authored and GitHub committed 2026-09-06 19:48:16 +08:00
1 parent 192e2e90dc
commit 5eb9039f0e
4 files changed
+33 -110

No files matched your search

+2 -2
View File
@@ -1914,8 +1914,8 @@ export class NanobotTui {
: "ready"
if (mode === "ready") {
this.meta.content = footerTelemetry(
this.lastUsage,
this.renderer.width,
this.lastUsage?.context_tokens ?? null,
this.contextWindowTokens,
footerHintTheme(this.palette),
)
return