Files
orca/config
brennanb2025andOrca 4e13b69a10 Keep exit events behind backpressured stream output
Adversarial review round (3 independent Codex reviewers + baseline pass) found that exit frames were written directly to the stream socket and could overtake output queued in the backpressure queue, so a renderer could tear down the session before the final output tail arrived. Both exit sites now route through writeEventLine on the same ordered path; the priority splice orders the exit after the session's own output, ahead of unrelated backlog, and protects it from bounded-queue trimming. Red-proven regression test at the daemon-server seam. Also documents the soft queue bound (maxQueuedBytes plus at most one frame) found by the same review.

Co-authored-by: Orca <help@stably.ai>
2026-07-05 09:09:30 -07:00
..