From c40c2d5ffa7d96ed5c9406f7954a570bbfd49b5e Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sat, 26 Sep 2026 15:15:46 +0200 Subject: [PATCH] State the guard as the invariant it holds and keep entry for transcript lines --- bin/loop-claude | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/loop-claude b/bin/loop-claude index 4bdac662..3dd9f796 100755 --- a/bin/loop-claude +++ b/bin/loop-claude @@ -416,7 +416,7 @@ def trust(paths): print(f"could not read {config}: {getattr(failure, 'strerror', failure)}", file=sys.stderr) return projects = data.setdefault("projects", {}) if isinstance(data, dict) else None - if not isinstance(projects, dict) or any(not isinstance(entry, dict) for entry in projects.values()): + if not isinstance(projects, dict) or not all(isinstance(record, dict) for record in projects.values()): print(f"could not read {config}: not an object whose projects maps paths to objects", file=sys.stderr) return granted = [path for path in paths if not projects.get(path, {}).get("hasTrustDialogAccepted")]