Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/node/services/streamManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,10 @@ export class StreamManager extends EventEmitter {
public async createTempDirForStream(streamToken: StreamToken, runtime: Runtime): Promise<string> {
// Create directory and get absolute path (works for both local and remote)
// Use 'cd' + 'pwd' to resolve ~ to absolute path
const command = `mkdir -p ~/.mux-tmp/${streamToken} && cd ~/.mux-tmp/${streamToken} && pwd`;
// On Windows, use cygpath to convert Git Bash path to native Windows path
const isWindows = process.platform === "win32";
const pwdCmd = isWindows ? 'cygpath -w "$(pwd)"' : "pwd";
const command = `mkdir -p ~/.mux-tmp/${streamToken} && cd ~/.mux-tmp/${streamToken} && ${pwdCmd}`;
const result = await execBuffered(runtime, command, {
cwd: "/",
timeout: 10,
Expand Down