DashboardopencodecopyInput hides disconnects

copyInput hides disconnects

Category: gotcha
Confidence: 1.00
ID: 01a07f79-8ca8-77aa-b88e-df9ec0204a89
Project ID: c0425955-02bc-4c17-9af2-b114c00077e7
Cross-project: No
Recalled in other projects: 0
Source session: 0HnYWt04hkHDZf4Yf
Created: 2026-09-08 05:24:27
Updated: 2026-09-08 05:24:27

Content

Trap: 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.

Move to: