MCPcopy Index your code
hub / github.com/codeaashu/claude-code / hasSession

Method hasSession

src/utils/terminalPanel.ts:74–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72 }
73
74 private hasSession(): boolean {
75 const result = spawnSync(
76 'tmux',
77 ['-L', getTerminalPanelSocket(), 'has-session', '-t', TMUX_SESSION],
78 { encoding: 'utf-8' },
79 )
80 return result.status === 0
81 }
82
83 private createSession(): boolean {
84 const shell = process.env.SHELL || '/bin/bash'

Callers 1

ensureSessionMethod · 0.95

Calls 1

getTerminalPanelSocketFunction · 0.85

Tested by

no test coverage detected