Commit 5800c20
Fix race condition in stdio.SendRequest with canceled context (#503)
Add early context cancellation check to prevent race condition where
SendRequest could return nil instead of context.Canceled when called
with an already-canceled context. This issue only manifested in certain
environments like GitHub Actions due to timing differences.
The fix ensures consistent behavior by checking context cancellation
before any I/O operations.
🤖 Generated with [opencode](https://opencode.ai)
Co-authored-by: opencode <[email protected]>1 parent 7c38b56 commit 5800c20
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
310 | 317 | | |
311 | 318 | | |
312 | 319 | | |
| |||
0 commit comments