feat(status): render state as centered overlay

Replace the /smart-compact notify() text with a ctx.ui.custom overlay
panel (the /dcp context look): usage bar, threshold rows with crossed
indicators, cycle flags, esc/enter/q/ctrl+c dismissal (keybindings-aware
with a raw kitty/legacy fallback set), and notify() fallback for
print/RPC mode.

Hardened by a fresh-context reviewer fanout (ponytail/security/general):
kitty explicit-modifier close forms added, render() now honors the
requested width exactly with a degenerate-narrow fallback, label width
simplified. Harness gains a ctx.ui.custom mock; 22 tests green.
This commit is contained in:
AlexKucera committed 2026-11-16 12:29:47 +01:00
1 parent 692c9c6c37
commit ea51a574c1
6 files changed
+424 -20

No files matched your search

+1 -1
View File
@@ -65,7 +65,7 @@ Optional. `~/.pi/agent/settings.json` (global) or `.pi/settings.json` (project;
## Command
`/smart-compact` shows live state: current tokens, window, both effective thresholds (with crossed indicators), and cycle flags. Useful for checking what a given model's thresholds resolve to without filling a session.
`/smart-compact` opens a centered overlay panel (the `/dcp context` look): current tokens, a usage bar, both effective thresholds (with crossed indicators), and cycle flags. Dismiss it with esc, enter, q, or ctrl+c. Where overlays are unavailable (print/RPC mode) it falls back to a plain notification. Useful for checking what a given model's thresholds resolve to without filling a session.
## Install