fix(tmux): wrap opencode attach commands in zsh -c shell

🤖 Generated with assistance of OhMyOpenCode
This commit is contained in:
YeonGyu-Kim
2026-03-12 20:12:38 +09:00
parent 4f4e53b436
commit e4e5f159f9
2 changed files with 2 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ export async function replaceTmuxPane(
})
await ctrlCProc.exited
const opencodeCmd = `opencode attach ${serverUrl} --session ${sessionId}`
const opencodeCmd = `zsh -c 'opencode attach ${serverUrl} --session ${sessionId}'`
const proc = spawn([tmux, "respawn-pane", "-k", "-t", paneId, opencodeCmd], {
stdout: "pipe",

View File

@@ -48,7 +48,7 @@ export async function spawnTmuxPane(
log("[spawnTmuxPane] all checks passed, spawning...")
const opencodeCmd = `opencode attach ${serverUrl} --session ${sessionId}`
const opencodeCmd = `zsh -c 'opencode attach ${serverUrl} --session ${sessionId}'`
const args = [
"split-window",