Skip to content

Commit 17a32b1

Browse files
committed
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.
1 parent 470d39f commit 17a32b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/client/stdio.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ export class StdioClientTransport implements Transport {
112112
env: this._serverParams.env ?? getDefaultEnvironment(),
113113
stdio: ["pipe", "pipe", this._serverParams.stderr ?? "inherit"],
114114
shell: false,
115+
detached: process.platform === "win32",
115116
signal: this._abortController.signal,
116117
},
117118
);

0 commit comments

Comments
 (0)