Fix the round loop's judge retry, reload and archive modes in loop-claude #14

Merged
lilleman merged 6 commits from loop-claude-round into main 2026-09-24 22:22:48 +02:00
Showing only changes of commit 1849efc894 - Show all commits
+4 -3
View File
@@ -79,12 +79,13 @@ JUDGE_SCHEMA = {
def sections(text):
found, current = {}, None
found, current, fenced = {}, None, False
for line in text.splitlines():
if line.startswith("## "):
fenced ^= line.startswith("```")
if not fenced and line.startswith("## "):
current = line.strip()[3:]
found[current] = []
elif line.startswith("#"):
elif not fenced and line.startswith("#"):
current = None
elif current and line.strip():
found[current].append(line)