queryCellSize blocks interactive client event loop for 200 ms on startupqueryCellSize blocks interactive client event loop for 200 ms on startupFile: src/main.zig:281
Severity: MEDIUM
Status: ✅ FIXED — reduced poll timeout from 200 ms to 5 ms so terminals that don’t support CSI 14 t don’t block the client.
const rc = std.posix.poll(&pollfd, 200) catch return false;
Called from runInteractiveClient (line 333). This blocks the single-threaded client event loop for up to 200 ms waiting for the terminal’s response to CSI 14 t (text area pixel size query). Terminals that do not support this escape sequence (or are slow to respond) will never reply, causing a guaranteed 200 ms delay on every client connection. During this time, no stdin or server data is processed.
Fix: Make the query asynchronous — send the request and check for the response during the normal poll loop with the other fds, or reduce the timeout and retry across multiple poll cycles.