fix(@projects/@claire): 🐛 update stale session cleanup logic

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Natalie 2026-06-02 15:20:25 -07:00
parent 1d431b5056
commit 53d05cfd41

View file

@ -578,11 +578,9 @@ def ensure_running(
stale = True
if not stale:
return cfg.orchestrator.session_uuid
# Stale — kill the live session(s); fall through to spawn fresh.
try:
rcl.kill(match=slug, yes=True)
except RclaudeError:
pass # best-effort; spawn proceeds either way
# Stale — fall through to spawn fresh. The kill-before-spawn below
# tears down this live pane (one kill point for both the stale and
# orphan cases).
# Snapshot pre-spawn session uuids at this cwd so discovery can ignore
# stale disk JSONLs from previous Claude runs (Claude doesn't delete