hermes-agent/ui-tui/src
Teknium b1d34cf6e2
fix(tui): clamp bogus terminal dimensions (WSL 131072x1) (#35657)
Some hosts (notably WSL) report a junk window size such as 131072 columns
by 1 row. Both the Ink fork and our components only guard against
0/null/undefined/NaN (stdout.columns || 80), so a positive-but-absurd
width sails through into createScreen(width*height), allocating tens to
hundreds of MB per frame and tripping the TUI memory monitor's hard exit.

Add clampStdoutDimensions(), installed in entry.tsx before ink.render: it
patches process.stdout.columns/rows with clamping getters (cols 1-2000,
rows 1-1000; out-of-range -> 80x24). One install point fixes the renderer,
its resize handler, and every component read. Live resizes still propagate
through the original descriptor, just clamped.
2026-05-30 20:42:30 -07:00
..
__tests__ fix(tui): clamp bogus terminal dimensions (WSL 131072x1) (#35657) 2026-05-30 20:42:30 -07:00
app feat(tui): nudge toward /agents dashboard when delegation starts 2026-05-30 12:26:36 +05:30
components fix: surface /agents nudge while delegate_task is in-flight (TUI + CLI) 2026-05-30 13:22:45 +05:30
config feat: configurable paste collapse thresholds (TUI + CLI) 2026-05-25 06:23:18 -07:00
content feat: add TUI session orchestrator 2026-05-26 20:51:59 -07:00
domain fix(tui): stabilize sticky prompt tracking 2026-04-28 22:10:40 -05:00
hooks fix(tui): recompute virtual tail after width resize 2026-05-23 14:49:26 -05:00
lib fix(tui): clamp bogus terminal dimensions (WSL 131072x1) (#35657) 2026-05-30 20:42:30 -07:00
protocol refactor(tui): /clean pass across ui-tui — 49 files, −217 LOC 2026-04-16 22:32:53 -05:00
types fix(tui): keep Ink displayCursor in sync with fast-echo writes so cursor stops drifting (#26717) 2026-05-16 00:28:12 -05:00
app.tsx fix(tui): apply ui-tui fix pass and restore type-check 2026-04-25 14:08:54 -05:00
banner.ts feat(tui): responsive banner tiers 2026-05-23 17:37:51 -05:00
entry.tsx fix(tui): clamp bogus terminal dimensions (WSL 131072x1) (#35657) 2026-05-30 20:42:30 -07:00
gatewayClient.ts fix(tui): log parent gateway lifecycle exits (#31051) 2026-05-23 13:28:40 -05:00
gatewayTypes.ts feat(tui): nudge toward /agents dashboard when delegation starts 2026-05-30 12:26:36 +05:30
theme.ts fix(tui): honor skin highlight colors (#20895) 2026-05-06 14:01:56 -07:00
types.ts fix(tui): surface verbose tool details (#30225) 2026-05-22 00:16:52 -05:00