mirror of
https://github.com/affaan-m/ECC.git
synced 2026-11-18 22:12:16 +00:00
When a registered project's context.json exists but cannot be parsed, loadContext() returns null and init wrote a fresh context over the file, destroying history that could still be recovered by hand. Stop with a message and leave the files alone instead. Tests: forgetting a project renamed by init leaves no context directory behind, and init over an unreadable context.json exits 1 without touching it. Rebind the skill triggers manifest to the new registry digest. Refs #3922