mirror of
https://github.com/stablyai/orca.git
synced 2026-10-18 00:03:20 +00:00
#7630 landed the same 2MB cap + droppedBacklog restore flag this branch introduced independently — adopt its mechanism wholesale (constants, flag naming, renderer threading, cap tests). This branch keeps what #7630 does not cover: releasing the queue + in-flight ACK budget on teardown paths that skip sendPtyExitToRenderer (SSH connection drop, synthetic-kill dedup), and dropping renderer delivery for output arriving inside the synthetic-kill window. Co-authored-by: Orca <help@stably.ai>