Skip to content

Commit fc250b6

Browse files
committed
🤖 debug: add logging to LocalBaseRuntime.exec for WSL tracing
1 parent 45e8ec1 commit fc250b6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/node/runtime/LocalBaseRuntime.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { getPreferredSpawnConfig } from "@/node/utils/main/bashPath";
2222
import { EXIT_CODE_ABORTED, EXIT_CODE_TIMEOUT } from "@/common/constants/exitCodes";
2323
import { DisposableProcess } from "@/node/utils/disposableExec";
2424
import { expandTilde } from "./tildeExpansion";
25+
import { log } from "@/node/services/log";
2526
import {
2627
checkInitHookExists,
2728
getInitHookPath,
@@ -76,6 +77,13 @@ export abstract class LocalBaseRuntime implements Runtime {
7677
cwd: spawnCwd,
7778
} = getPreferredSpawnConfig(command, cwd);
7879

80+
// Debug logging for Windows WSL issues
81+
log.info(`[LocalBaseRuntime.exec] Original command: ${command}`);
82+
log.info(`[LocalBaseRuntime.exec] Original cwd: ${cwd}`);
83+
log.info(`[LocalBaseRuntime.exec] Spawn command: ${bashCommand}`);
84+
log.info(`[LocalBaseRuntime.exec] Spawn args: ${JSON.stringify(bashArgs)}`);
85+
log.info(`[LocalBaseRuntime.exec] Spawn cwd: ${spawnCwd}`);
86+
7987
// If niceness is specified on Unix/Linux, spawn nice directly to avoid escaping issues
8088
// Windows doesn't have nice command, so just spawn bash directly
8189
const isWindows = process.platform === "win32";

0 commit comments

Comments
 (0)