From 17a32b14d48eaeca28ed79fe5950b73ba8301522 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ana=C3=AFs=20Betts?= Date: Wed, 20 Nov 2024 14:41:53 +0100 Subject: [PATCH] Use detached: true on Windows Unfortunately, the fix in #55 was not sufficient - the behavior of spawn depends on the "console'ness" of the originally launched process, which has the effect of development behavior for Claude Desktop on Windows being different than in production, since the launching process is Claude.exe (a Win32 Subsystem app) vs `yarn start` which is effectively a Console Subsystem app. --- src/client/stdio.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/stdio.ts b/src/client/stdio.ts index 1871091f..af9841fd 100644 --- a/src/client/stdio.ts +++ b/src/client/stdio.ts @@ -112,6 +112,7 @@ export class StdioClientTransport implements Transport { env: this._serverParams.env ?? getDefaultEnvironment(), stdio: ["pipe", "pipe", this._serverParams.stderr ?? "inherit"], shell: false, + detached: process.platform === "win32", signal: this._abortController.signal, }, );