toast
4ff38cd539
fix: clean up orphaned tmux sessions at gt start time
...
Add CleanupOrphanedSessions() function that runs at `gt start` time to
detect and kill zombie tmux sessions (sessions where tmux is alive but
the Claude process has died).
This prevents:
- Session name conflicts when restarting agents
- Resource accumulation from orphaned sessions
- Process accumulation that can overwhelm the system
The function scans for sessions with `gt-*` and `hq-*` prefixes, checks
if Claude is running using IsClaudeRunning(), and kills zombie sessions
using KillSessionWithProcesses() for proper cleanup.
Fixes #700
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-23 13:43:58 -08:00
..
2026-01-20 14:17:35 -08:00
2026-01-22 18:27:51 -08:00
2026-01-21 22:40:10 -08:00
2026-01-23 13:43:57 -08:00
2026-01-20 20:45:58 -08:00
2026-01-21 18:04:58 -08:00
2026-01-23 13:43:58 -08:00
2026-01-20 20:46:43 -08:00
2026-01-20 12:58:01 -08:00
2026-01-21 22:46:00 -08:00
2026-01-20 20:45:58 -08:00
2026-01-20 20:45:58 -08:00
2026-01-20 20:20:49 -08:00
2026-01-22 11:44:45 -08:00
2026-01-20 19:51:37 -08:00
2026-01-21 20:52:26 -08:00
2026-01-20 23:20:50 +01:00
2026-01-22 18:27:51 -08:00
2026-01-21 22:48:06 +07:00
2026-01-22 22:25:34 -08:00
2026-01-21 18:05:00 -08:00
2026-01-21 21:09:30 -08:00
2026-01-21 22:40:10 -08:00
2026-01-23 13:43:57 -08:00
2026-01-21 17:40:05 -08:00
2026-01-23 13:43:58 -08:00
2026-01-23 13:43:58 -08:00
2026-01-21 23:05:00 -08:00
2026-01-20 14:17:35 -08:00
2026-01-21 22:48:06 +07:00
2026-01-17 09:49:53 -08:00
2026-01-21 21:53:18 -08:00
2026-01-22 11:44:45 -08:00
2026-01-21 21:55:07 -08:00
2026-01-21 21:19:04 -08:00
2026-01-21 21:55:07 -08:00
2026-01-21 21:09:30 -08:00
2026-01-20 14:10:26 -08:00
2026-01-23 13:43:57 -08:00
2026-01-20 22:30:23 -08:00
2026-01-20 19:31:26 -08:00
2026-01-20 19:31:26 -08:00
2026-01-21 18:04:00 -08:00
2026-01-20 19:31:17 -08:00
2026-01-21 18:04:55 -08:00
2026-01-22 15:38:39 -08:00
2026-01-22 19:58:35 -08:00
2026-01-21 20:52:26 -08:00
2026-01-20 20:20:49 -08:00
2026-01-20 20:00:56 -08:00
2026-01-21 19:50:38 -08:00
2026-01-23 13:43:57 -08:00
2026-01-21 10:31:16 -08:00
2026-01-21 10:31:16 -08:00
2026-01-20 20:19:05 -08:00
2026-01-20 12:57:46 -08:00
2026-01-23 13:43:57 -08:00
2026-01-21 19:30:49 -08:00
2026-01-23 13:43:57 -08:00
2026-01-22 19:46:14 -08:00
2026-01-22 19:46:14 -08:00
2026-01-20 14:17:35 -08:00
2026-01-21 20:52:26 -08:00
2026-01-20 14:17:35 -08:00
2026-01-22 19:46:14 -08:00
2026-01-20 22:34:37 -08:00
2026-01-20 22:34:37 -08:00
2026-01-23 13:43:58 -08:00
2026-01-22 18:27:51 -08:00
2026-01-21 22:40:10 -08:00
2026-01-20 14:17:35 -08:00
2026-01-19 11:21:54 -08:00
2026-01-19 11:21:54 -08:00
2026-01-20 14:17:35 -08:00
2026-01-21 23:05:00 -08:00
2026-01-20 20:45:58 -08:00