[PR #3741] fix: Flush streams before exit #10748

Closed
opened 2026-02-16 18:15:29 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/3741

State: closed
Merged: No


For long-running stdout writes to a pipe, process.exit() can exit before everything is written (since writes to a pipe are asynchronous). This fix makes sure the streams are done before exiting.

Note: A more general fix than: https://github.com/sst/opencode/pull/3821

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/3741 **State:** closed **Merged:** No --- For long-running stdout writes to a pipe, `process.exit()` can exit before everything is written (since writes to a pipe are asynchronous). This fix makes sure the streams are done before exiting. Note: A more general fix than: https://github.com/sst/opencode/pull/3821
yindo added the pull-request label 2026-02-16 18:15:29 -05:00
yindo closed this issue 2026-02-16 18:15:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10748