KillPaneProcesses was being called on new sessions before respawn, which killed the fresh shell and destroyed the pane. This caused "can't find pane" errors on session creation. Now KillPaneProcesses is only called when restarting in an existing session where Claude/Node processes might be running and ignoring SIGHUP. For new sessions, we just use respawn-pane directly. Also added retry limit and error checking for the stale session recovery path. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
12 KiB
12 KiB