feat(tui): add /usage context and token charts

This commit is contained in:
chengyongru authored and chengyongru committed 2026-09-09 13:04:45 +08:00
1 parent cccf6e4608
commit b7fc4146e0
9 files changed
+982 -11

No files matched your search

+2
View File
@@ -22,6 +22,7 @@ export type FooterMode =
| "command"
| "session"
| "context"
| "usage"
| "history"
| "ready"
@@ -87,6 +88,7 @@ function hintsFor(
if (mode === "session") return width >= 64
? [hint("type", "filter"), hint("↑↓", "choose"), hint("enter", "open"), hint("esc", "close")]
: [hint("enter", "open"), hint("esc", "close")]
if (mode === "usage") return [hint("←→", "round"), hint("esc", "close")]
if (mode === "context") return [hint("esc", "close"), hint("pgup/pgdn", "scroll")]
if (mode === "history") return width >= 72
? [hint("ctrl+end", "latest"), hint("pgup/pgdn", "scroll")]