fix(tmux): pin pane commands to /bin/sh

This commit is contained in:
Disaster-Terminator
2026-04-18 21:20:49 +08:00
committed by YeonGyu-Kim
parent 8c5ca73634
commit 91f1cf5fbc
2 changed files with 27 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import { shellEscapeForDoubleQuotedCommand } from "../../shell-env"
const TMUX_COMMAND_SHELL = "/bin/sh"
export function buildTmuxAttachCommand(serverUrl: string, sessionId: string, directory: string): string {
export function buildTmuxAttachCommand(serverUrl: string, sessionId: string, directory: string = process.cwd()): string {
const escapedUrl = shellEscapeForDoubleQuotedCommand(serverUrl)
const escapedSessionId = shellEscapeForDoubleQuotedCommand(sessionId)
const escapedDirectory = shellEscapeForDoubleQuotedCommand(directory || process.cwd())