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", ...}]}}}