Dashboard › opencode › copyInput hides disconnects
01a07f79-8ca8-77aa-b88e-df9ec0204a89Trap: reading client frames and writing each payload synchronously to the PTY stream looks like natural backpressure. If the command stops reading stdin, the stream write can block forever, preventing detection of client disconnect and retaining the transient unit/session slot when no runtime limit exists. Fix: make input forwarding cancellable and detect connection closure independently, then stop and reap the unit.