v3.1.72026-06-04
Terminal backpressure and swarm recovery
BridgeSpace 3.1.7 hardens terminal output under sustained multi-agent load, adds safer swarm stop and resume handling, and keeps terminal reattach recovery moving when a renderer channel goes stale.
- Terminals keep draining under heavy output. Terminal writes now recover if an xterm callback stalls, and oversized PTY bursts are split at safe boundaries before they reach the renderer.
- Swarms stop and resume more cleanly. Swarm workspaces now have shared runtime cleanup for graceful stops, hard stops, completed swarms, and resumed integrations.
- Terminal reattach recovers stale channels. Session attach now verifies the backend channel state and refreshes stale Tauri Channels instead of trusting a dead renderer cache.
Added
- Swarm workspaces now support explicit resume and hard-stop paths so builders can restart integrations or tear down every agent runtime from one control flow.
Changed
- Visible terminal output now flushes in renderer-sized bursts, with Rust large-flush pressure lowered to match the 256 KB xterm drain budget.
- Completed swarms now share one cleanup path that unregisters monitors, stops or destroys terminal sessions, tears down mailbox watchers, and removes stale nudge state.
Fixed
- Fixed terminal freezes caused by a stalled xterm.write callback leaving the renderer queue permanently scheduled and unable to drain.
- Fixed oversized PTY chunks bypassing the per-frame drain limit by splitting queued output at ANSI, OSC, and UTF-16-safe boundaries.
- Fixed stale terminal attach state by checking whether Rust still has a live data channel before skipping channel reattachment.
