Files
orca/src/shared
Neil 7ab425dab0 perf(ssh): coalesce output longer for visible-but-unfocused remote terminal panes (#39660)
* perf(ssh): let orcad coalesce output longer for background-visible terminal streams

Adds capability-gated SetOutputCadence (opcode 20) and an initial subscribe
cadence. Background streams batch over 100ms instead of 5ms (64KB cap kept,
bytes unchanged); switching to focused, or output carrying a reply query the
view answers, flushes immediately.

* perf(ssh): report focused vs visible-background cadence for remote panes

The remote multiplexer advertises outputCadence and sends cadence changes only
after the host echoes it. Panes report focused only when visible and the
active split, resyncing on bind, visibility, focus and tab-activity changes.

* perf(ssh): resync output cadence after splits and update cadence test fixtures

* perf(ssh): add orcad output-cadence kill switch and shorten background window to 50ms

ORCA_DISABLE_TERMINAL_OUTPUT_CADENCE=1 makes orcad neither echo the capability
nor apply the background window. Only callers that retune cadence advertise it,
so other terminal subscribers keep their wire shape.
2026-11-07 19:02:12 -08:00
..
…