()
| 60 | // ── tmux helpers ────────────────────────────────────────────────── |
| 61 | |
| 62 | private checkTmux(): boolean { |
| 63 | if (this.hasTmux !== undefined) return this.hasTmux |
| 64 | const result = spawnSync('tmux', ['-V'], { encoding: 'utf-8' }) |
| 65 | this.hasTmux = result.status === 0 |
| 66 | if (!this.hasTmux) { |
| 67 | logForDebugging( |
| 68 | 'Terminal panel: tmux not found, falling back to non-persistent shell', |
| 69 | ) |
| 70 | } |
| 71 | return this.hasTmux |
| 72 | } |
| 73 | |
| 74 | private hasSession(): boolean { |
| 75 | const result = spawnSync( |
no test coverage detected