From f5b3ba0a5d3ca92d95cb7d3e5b6a0d7ba0fdd73e Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 2 Oct 2026 07:41:41 +0200 Subject: [PATCH] Answer the product-owner review's first round --- CHANGELOG.md | 2 +- bin/loop_claude/claude_code/session.py | 2 +- bin/test_loop_claude.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cc4cb067..3250c6c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,5 +16,5 @@ - `loop-claude` counts an interrupt reply starting with `<` as typed. - `loop-claude`'s judge sees a reply the human types while claude works, and an interrupt counts one as typed. - `loop-claude`'s archive holds the raw `.jsonl` transcript, one copy per distinct transcript, named by its SHA-256, with the verdict beside it in `.verdict.md`; a transcript it cannot archive exits 1. -- `loop-claude` exits 1 when it cannot delete a finished chunk's session, naming what to delete, so the next chunk does not resume it. +- `loop-claude` exits 1 when it cannot delete a finished chunk's session, naming what to delete before rerunning; the next chunk would otherwise resume it. - `loop-claude` keeps the mode of `~/.claude.json` and of its models file when it rewrites them, and creates the models file 0600. diff --git a/bin/loop_claude/claude_code/session.py b/bin/loop_claude/claude_code/session.py index 83c2e978..b39343fd 100644 --- a/bin/loop_claude/claude_code/session.py +++ b/bin/loop_claude/claude_code/session.py @@ -46,5 +46,5 @@ def delete_session(session: Session) -> Failure | None: try: shutil.rmtree(sibling) if os.path.isdir(sibling) else os.remove(sibling) except OSError as failure: - return Failure(f"could not delete {sibling}: {failure.strerror or failure}; delete {stem}* and rerun loop-claude, or the next chunk resumes the finished chunk's session") + return Failure(f"could not delete {sibling}: {failure.strerror or failure}; delete every file and folder matching {stem}* and rerun loop-claude, or the next chunk resumes the finished chunk's session") return None diff --git a/bin/test_loop_claude.py b/bin/test_loop_claude.py index c67cec1f..87b14a8d 100644 --- a/bin/test_loop_claude.py +++ b/bin/test_loop_claude.py @@ -186,7 +186,7 @@ class Cycles(unittest.TestCase): self.addCleanup(folder.chmod, 0o700) fake = FakeEffects(streams=[Worker(self.paths.claude_code_transcripts.parent)], claude=[judged("finished")]) stop = steps.run_cycle(self.cycle(fake)) - self.assertEqual(stop, Stop(1, f"could not delete {folder}: Permission denied; delete {folder}* and rerun loop-claude, or the next chunk resumes the finished chunk's session")) + self.assertEqual(stop, Stop(1, f"could not delete {folder}: Permission denied; delete every file and folder matching {folder}* and rerun loop-claude, or the next chunk resumes the finished chunk's session")) self.assertTrue(session.session_open(self.session)) self.assertEqual(self.archived_verdicts(), ["Task: Do it.\n\nVerdict: finished\n"])