fix(tmux): conditionally mark server running and add interactive bash helper

🤖 Generated with assistance of [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
This commit is contained in:
YeonGyu-Kim
2026-04-05 13:27:41 +09:00
parent 5d065da7a1
commit 14bf48a6d7
2 changed files with 9 additions and 1 deletions
+6
View File
@@ -7,6 +7,12 @@ export function isTmuxIntegrationEnabled(
return pluginConfig.tmux?.enabled ?? false
}
export function isInteractiveBashEnabled(
which: (binary: string) => string | null = Bun.which,
): boolean {
return which("tmux") !== null
}
export function createRuntimeTmuxConfig(pluginConfig: { tmux?: OhMyOpenCodeConfig["tmux"] }): TmuxConfig {
return TmuxConfigSchema.parse(pluginConfig.tmux ?? {})
}