Commit 3ff3c20
fix: Add minimum drain wait time for PTY output capture
On Ubuntu CI, the PTY drain loop was exiting prematurely because the
kernel returns spurious EOFs before all data is flushed from the buffer.
The existing heuristic (4 consecutive EOFs with exponential backoff)
wasn't sufficient on slow CI runners under load.
Add MIN_DRAIN_WAIT_MS (500ms) that must elapse during drain before
accepting stable EOF. This gives the kernel enough time to flush PTY
buffers, regardless of how many EOFs we've seen.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 5ab0e10 commit 3ff3c20
1 file changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
116 | 123 | | |
117 | 124 | | |
118 | 125 | | |
| |||
445 | 452 | | |
446 | 453 | | |
447 | 454 | | |
| 455 | + | |
448 | 456 | | |
449 | | - | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
450 | 461 | | |
451 | 462 | | |
452 | 463 | | |
| |||
0 commit comments