From d57c27feee97070360b0a145b100336226363e46 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Mon, 16 Mar 2026 13:52:41 +0900 Subject: [PATCH] fix(tmux): replace hardcoded zsh with portable shell detection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-openagent) --- src/shared/tmux/tmux-utils/pane-replace.ts | 3 ++- src/shared/tmux/tmux-utils/pane-spawn.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/shared/tmux/tmux-utils/pane-replace.ts b/src/shared/tmux/tmux-utils/pane-replace.ts index ac822684d..53520439a 100644 --- a/src/shared/tmux/tmux-utils/pane-replace.ts +++ b/src/shared/tmux/tmux-utils/pane-replace.ts @@ -34,7 +34,8 @@ export async function replaceTmuxPane( }) await ctrlCProc.exited - const opencodeCmd = `zsh -c 'opencode attach ${serverUrl} --session ${sessionId}'` + const shell = process.env.SHELL || "/bin/sh" + const opencodeCmd = `${shell} -c 'opencode attach ${serverUrl} --session ${sessionId}'` const proc = spawn([tmux, "respawn-pane", "-k", "-t", paneId, opencodeCmd], { stdout: "pipe", diff --git a/src/shared/tmux/tmux-utils/pane-spawn.ts b/src/shared/tmux/tmux-utils/pane-spawn.ts index 9b18f385b..18af7c536 100644 --- a/src/shared/tmux/tmux-utils/pane-spawn.ts +++ b/src/shared/tmux/tmux-utils/pane-spawn.ts @@ -48,7 +48,8 @@ export async function spawnTmuxPane( log("[spawnTmuxPane] all checks passed, spawning...") - const opencodeCmd = `zsh -c 'opencode attach ${serverUrl} --session ${sessionId}'` + const shell = process.env.SHELL || "/bin/sh" + const opencodeCmd = `${shell} -c 'opencode attach ${serverUrl} --session ${sessionId}'` const args = [ "split-window",