mirror of
https://github.com/instructkr/claude-code.git
synced 2026-04-03 17:08:47 +03:00
The plugin loader already pruned stale registry entries, but stale enabled state could linger in settings.json after bundled or installed plugin discovery cleaned up missing installs. This change removes those orphaned enabled flags when stale registry entries are dropped so loader-managed state stays coherent. Constraint: Commit only plugin loader/registry code in this pass Rejected: Leave stale enabled flags in settings.json | state drift would survive loader self-healing Confidence: high Scope-risk: narrow Reversibility: clean Directive: Any future loader-side pruning should remove matching enabled state in the same code path Tested: cargo fmt --all; cargo test -p plugins Not-tested: Interactive CLI /plugins flows against manually edited settings.json