test(tmux): isolate tmux environment checks from process env

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-03-16 11:36:38 +09:00
parent fe3f0584ed
commit 48707a6901
2 changed files with 19 additions and 18 deletions
+5 -1
View File
@@ -1,7 +1,11 @@
export type SplitDirection = "-h" | "-v"
export function isInsideTmuxEnvironment(environment: Record<string, string | undefined>): boolean {
return Boolean(environment.TMUX)
}
export function isInsideTmux(): boolean {
return Boolean(process.env.TMUX)
return isInsideTmuxEnvironment(process.env)
}
export function getCurrentPaneId(): string | undefined {