authorgravatar for 73941998+UtkarshUsername@users.noreply.github.comUtkarsh Patil <73941998+UtkarshUsername@users.noreply.github.com> 2026-07-22 20:53:07+05:30
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-07-22 17:23:07+02:00
logf74eb62661734927aea45a243e2c3effced43fb9
treef9c4edf501c0d3e82a46346936b7abbb2f40184b
parente5fba263e6820350e4edc7e5d93955aabef53df1
signature Signed by PGP key B5690EEEBB952194

fix(desktop): handle EPIPE errors on stdout/stderr to prevent crash dialog (#4213)


1 files changed, 6 insertions(+), 0 deletions(-)

apps/desktop/src/main.ts+6
......@@ -1,3 +1,9 @@
1for (const stream of [process.stdout, process.stderr]) {
2 stream.on("error", (err: NodeJS.ErrnoException) => {
3 if (err.code !== "EPIPE") throw err;
4 });
5}
6
17import * as NodeHttpClient from "@effect/platform-node/NodeHttpClient";
28import * as NodeRuntime from "@effect/platform-node/NodeRuntime";
39import * as NodeServices from "@effect/platform-node/NodeServices";