@devries-cameron20 / t3code-1 / commits / f74eb62661
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

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

Utkarsh Patil committed Jul 22, 2026 at 20:53 UTC f74eb62661734927aea45a243e2c3effced43fb9
1 file changed +6
apps/desktop/src/main.ts
+6
@@ -1,3 +1,9 @@
1 +for (const stream of [process.stdout, process.stderr]) {
2 + stream.on("error", (err: NodeJS.ErrnoException) => {
3 + if (err.code !== "EPIPE") throw err;
4 + });
5 +}
6 +
7 import * as NodeHttpClient from "@effect/platform-node/NodeHttpClient";
8 import * as NodeRuntime from "@effect/platform-node/NodeRuntime";
9 import * as NodeServices from "@effect/platform-node/NodeServices";