Retire the section-headers decision, reject an interrupt without a question, and name file_writes by what it does

This commit is contained in:
2026-09-28 16:46:18 +02:00
parent 9bfb2fe173
commit b40893bc70
9 changed files with 10 additions and 13 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import json
import sys
from loop_claude.private_file import replace_json
from loop_claude.file_writes import replace_json
def trust(config, roots):
@@ -15,7 +15,7 @@ def trust(config, roots):
if not isinstance(projects, dict):
print(f"could not read {config}: not an object whose \"projects\" is an object", file=sys.stderr)
return
if wrong := next((path for path, record in projects.items() if not isinstance(record, dict)), None):
if (wrong := next((path for path, record in projects.items() if not isinstance(record, dict)), None)) is not None:
print(f"could not read {config}: projects[{json.dumps(wrong)}] is not an object", file=sys.stderr)
return
untrusted = [path for path in roots if not projects.get(path, {}).get("hasTrustDialogAccepted")]