MCPcopy
hub / github.com/codeaashu/claude-code / ensureSession

Method ensureSession

src/utils/terminalPanel.ts:176–179  ·  view source on GitHub ↗

Ensure a tmux session exists, creating one if needed.

()

Source from the content-addressed store, hash-verified

174
175 /** Ensure a tmux session exists, creating one if needed. */
176 private ensureSession(): boolean {
177 if (this.hasSession()) return true
178 return this.createSession()
179 }
180
181 /** Fallback when tmux is not available — runs a non-persistent shell. */
182 private runShellDirect(): void {

Callers 1

showShellMethod · 0.95

Calls 2

hasSessionMethod · 0.95
createSessionMethod · 0.95

Tested by

no test coverage detected