From b69b37b334a256acfefa42e24be79530c3aacf3b Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 29 Sep 2026 10:27:03 +0200 Subject: [PATCH] Name the records mark_trusted adds --- bin/loop_claude/claude_code/formats.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/loop_claude/claude_code/formats.py b/bin/loop_claude/claude_code/formats.py index 0a7615bb..aa79a2a5 100644 --- a/bin/loop_claude/claude_code/formats.py +++ b/bin/loop_claude/claude_code/formats.py @@ -129,7 +129,8 @@ def mark_trusted(config, roots): if (wrong := next((path for path, record in projects.items() if not isinstance(record, dict)), None)) is not None: return Failure(f"projects[{json.dumps(wrong)}] is not an object") untrusted = [path for path in roots if not projects.get(path, {}).get("hasTrustDialogAccepted")] - return {**config, "projects": {**projects, **{path: {**projects.get(path, {}), "hasTrustDialogAccepted": True} for path in untrusted}}}, untrusted + marked = {path: {**projects.get(path, {}), "hasTrustDialogAccepted": True} for path in untrusted} + return {**config, "projects": {**projects, **marked}}, untrusted # /*.json: {"fetchedAt": 1790618085238, "catalog": {"config": {"models": [{"id": "claude-opus-5-5", "name": "Opus 5.5", ...}]}}}