Skip to content
v3.0.772026-05-29

Multi-agent terminal freeze fix

Fixes terminals freezing on a blank or partially-painted frame when a workspace full of agents streams output at once, by bounding how much the renderer does per frame and never handing xterm one giant write.

  • Terminals stay alive under a full swarm. A single huge burst of output is now split into bounded slices and the render scheduler caps per-frame work, so spawning a grid of agents no longer saturates the main thread and freezes panes blank.

Changed

  • Lowered the global per-frame render budget and per-background-terminal slice so a grid of streaming agents can't saturate a single frame; background panes round-robin and catch up across frames instead of blocking the focused terminal and keystroke echo.

Fixed

  • Oversized single output chunks (e.g. a 1MB full-screen TUI repaint arriving in one read) are now split at a safe boundary instead of being handed to xterm in one write, which previously blocked the main thread for hundreds of milliseconds and could wedge a pane — or the whole app — for seconds during a multi-agent spawn storm.
  • Re-tuned the stuck-write watchdog timeout above the worst-case legitimate write time so it no longer fires mid-write under heavy load (which could have re-introduced partial-frame painting).