fix(tui): share overlay close controls

- add reusable overlay key and help-text helpers for picker-style overlays
- make model, session, skills, and pager hints consistently support Esc/q close behavior
This commit is contained in:
Brooklyn Nicholson 2026-04-25 14:17:04 -05:00
parent fdcbd2257b
commit a046483e86
6 changed files with 102 additions and 57 deletions

View file

@ -345,6 +345,7 @@ const measureTextNode = function (
// pathological frames where yoga probes many widths.
if (cache.entries.size >= MEASURE_CACHE_CAP) {
const firstKey = cache.entries.keys().next().value
if (firstKey !== undefined) {
cache.entries.delete(firstKey)
}