From ce9eaf6114f84e12a366d56c634cc8dd097899f5 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 2 Oct 2026 07:44:18 +0200 Subject: [PATCH] Answer the stability review's second round --- bin/loop_claude/claude_code/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/loop_claude/claude_code/session.py b/bin/loop_claude/claude_code/session.py index 228cc678..1c1c735f 100644 --- a/bin/loop_claude/claude_code/session.py +++ b/bin/loop_claude/claude_code/session.py @@ -41,7 +41,7 @@ def delete_session(session: Session) -> Failure | None: return None stem = path.removesuffix(".jsonl") # .jsonl, /subagents/, and from older versions .superseded-1789290815002/ and .orphaned-*.jsonl - # The transcript goes last: a failed delete then leaves the session whole, never a new session with this id beside the old one's files. + # The transcript goes last: a failed delete leaves a session session_open still sees, never a new session with this id beside the old one's files. for sibling in sorted(glob.glob(glob.escape(stem) + "*"), key=lambda sibling: sibling == path): try: shutil.rmtree(sibling) if os.path.isdir(sibling) else os.remove(sibling)