The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 24, 20:15 UTC
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";