Olivier Debeuf De Rijcker
87a2e27fcc
fix(sling): Wait for Claude to be ready before nudging existing sessions ( #146 )
...
When `gt sling` targets an existing polecat session, it now waits for
Claude to be ready before sending the nudge message. This fixes issue #115
where the "Work slung" message would arrive before Claude had fully started.
Changes:
- Add getSessionFromPane() to extract session name from pane target
- Add ensureClaudeReady() to wait for Claude startup using the same
pragmatic approach as session.Start() (poll for node, accept bypass
dialog, then 8-second delay)
- Call ensureClaudeReady() before injectStartPrompt() in runSling()
The fix uses IsClaudeRunning() for a fast path when Claude is already
running, avoiding unnecessary delays for sessions that have been
running for a while.
Fixes #115
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-06 12:59:05 -08:00
..
2025-12-30 20:52:23 -08:00
2025-12-30 18:03:06 -08:00
2026-01-01 18:58:56 -08:00
2026-01-01 18:58:56 -08:00
2026-01-05 00:42:24 -08:00
2025-12-30 16:43:39 -08:00
2026-01-03 16:11:55 -08:00
2026-01-02 18:56:45 -08:00
2026-01-03 16:11:55 -08:00
2025-12-30 18:03:06 -08:00
2026-01-03 16:11:55 -08:00
2026-01-01 18:53:39 -08:00
2026-01-05 06:58:46 +01:00
2026-01-05 06:58:46 +01:00
2026-01-05 00:21:42 -08:00
2026-01-03 21:37:05 +01:00
2026-01-05 18:23:00 -08:00
2026-01-04 13:17:39 -08:00
2026-01-04 14:01:02 -08:00
2025-12-27 16:48:26 -08:00
2026-01-04 14:01:02 -08:00
2026-01-05 19:11:14 -08:00
2025-12-21 00:46:12 -08:00
2025-12-25 11:33:54 -08:00
2025-12-25 23:14:29 -08:00
2026-01-05 19:11:14 -08:00
2026-01-03 21:37:05 +01:00
2026-01-04 15:30:57 -05:00
2026-01-03 11:49:42 -08:00
2026-01-03 16:23:44 -08:00
2026-01-04 14:41:28 -08:00
2026-01-05 00:42:24 -08:00
2026-01-01 18:54:36 -08:00
2026-01-05 21:30:11 -08:00
2026-01-03 21:37:05 +01:00
2026-01-03 10:33:27 -08:00
2026-01-05 19:38:55 -08:00
2026-01-04 00:17:37 -08:00
2025-12-30 10:54:29 -08:00
2025-12-30 09:58:14 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2025-12-25 23:53:34 -08:00
2026-01-03 16:12:27 -08:00
2026-01-03 16:11:55 -08:00
2026-01-04 19:46:27 -08:00
2026-01-03 16:11:55 -08:00
2025-12-23 11:42:48 -08:00
2025-12-25 02:32:01 -08:00
2026-01-04 23:13:03 -08:00
2025-12-25 23:14:29 -08:00
2026-01-04 23:13:03 -08:00
2026-01-05 21:26:31 -08:00
2026-01-03 16:11:55 -08:00
2025-12-30 18:03:06 -08:00
2026-01-02 00:22:17 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 21:00:00 -08:00
2026-01-03 21:00:00 -08:00
2025-12-23 11:44:34 -08:00
2025-12-30 22:10:08 -08:00
2026-01-05 19:39:57 -08:00
2026-01-01 18:58:56 -08:00
2026-01-03 16:11:55 -08:00
2025-12-28 16:38:04 -08:00
2026-01-05 19:39:57 -08:00
2025-12-26 13:20:14 -08:00
2026-01-03 16:11:55 -08:00
2025-12-30 22:02:45 -08:00
2025-12-25 23:14:29 -08:00
2026-01-02 17:18:27 -08:00
2026-01-02 17:18:27 -08:00
2025-12-20 23:25:16 -08:00
2026-01-04 14:01:02 -08:00
2025-12-20 23:25:16 -08:00
2025-12-20 23:25:16 -08:00
2026-01-01 18:56:35 -08:00
2025-12-25 02:32:01 -08:00
2026-01-01 18:54:36 -08:00
2026-01-05 00:42:24 -08:00
2026-01-03 16:11:55 -08:00
2025-12-30 00:52:02 -08:00
2025-12-26 16:23:37 -08:00
2026-01-01 19:16:06 -08:00
2026-01-04 15:16:56 -08:00
2026-01-03 21:37:05 +01:00
2026-01-03 16:11:55 -08:00
2026-01-04 14:28:40 -08:00
2026-01-05 19:38:53 -08:00
2026-01-03 21:53:30 -08:00
2026-01-05 20:24:47 +01:00
2026-01-02 18:25:15 -08:00
2025-12-25 02:32:01 -08:00
2026-01-01 19:11:04 -08:00
2025-12-21 22:13:21 -08:00
2026-01-05 07:23:06 -08:00
2026-01-04 22:26:49 -08:00
2025-12-26 19:42:41 -08:00
2025-12-30 22:13:14 -08:00
2025-12-31 00:27:59 -08:00
2026-01-03 16:11:55 -08:00
2026-01-04 20:53:17 -05:00
2026-01-06 12:59:05 -08:00
2026-01-05 19:18:16 -08:00
2026-01-01 18:15:37 -08:00
2026-01-05 16:30:28 -08:00
2026-01-05 00:42:24 -08:00
2026-01-05 21:18:15 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-01 16:01:28 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 14:33:24 -08:00
2026-01-03 16:11:55 -08:00
2026-01-05 19:39:57 -08:00
2026-01-03 16:11:55 -08:00
2026-01-05 00:51:00 -08:00
2025-12-29 18:02:49 -08:00
2026-01-03 16:11:55 -08:00
2025-12-30 21:16:43 -08:00