df197f45fdf321b35c461c4436cdcfdc1cfcbafc
ensureStarted's stderr-copy goroutine could still be mid-Read when close() called cmd.Wait(), which os/exec's StderrPipe docs call out as incorrect and can truncate/garble trailing stderr diagnostics or surface a spurious "file already closed" error. close() now waits on a stderrDone channel, closed by the copy goroutine once it hits EOF (unblocked by killing the process), before calling Wait. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Description
No description provided
Languages
Go
72.8%
TypeScript
20.3%
Python
4.7%
CSS
2.1%