@devries-cameron20 / t3code-1 / commits / 2fce84a1d4
Fork 0

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

fix: quote editor launch args on Windows to support paths with spaces (#1805)

Ishan committed Apr 12, 2026 at 13:11 UTC 2fce84a1d45bdecab05ef1f6864266236b53a5df
1 file changed +10 -5
apps/server/src/open.ts
+10 -5
@@ -293,11 +293,16 @@ export const launchDetached = (launch: EditorLaunch) =>
293 yield* Effect.callback<void, OpenError>((resume) => {
294 let child;
295 try {
296 - child = spawn(launch.command, [...launch.args], {
297 - detached: true,
298 - stdio: "ignore",
299 - shell: process.platform === "win32",
300 - });
296 + const isWin32 = process.platform === "win32";
297 + child = spawn(
298 + launch.command,
299 + isWin32 ? launch.args.map((a) => `"${a}"`) : [...launch.args],
300 + {
301 + detached: true,
302 + stdio: "ignore",
303 + shell: isWin32,
304 + },
305 + );
306 } catch (error) {
307 return resume(
308 Effect.fail(new OpenError({ message: "failed to spawn detached process", cause: error })),