From 9c9a0240f7857b28525c97b56a3319f70dd81aa8 Mon Sep 17 00:00:00 2001 From: bchanot Date: Sat, 14 Nov 2026 10:38:57 +0100 Subject: [PATCH] fix(doctor): residue check covers skillOverrides, not only enabledPlugins --- doctor.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doctor.sh b/doctor.sh index d4ae484..97a7f9d 100644 --- a/doctor.sh +++ b/doctor.sh @@ -142,12 +142,12 @@ fi if grep -Eq 'alias cc=|dtach_claude' "$HOME/.bashrc" 2>/dev/null; then warn "\$HOME/.bashrc still has alias cc= or dtach_claude: remove them, the alias shadows cc()" fi -_ep_head="$(git -C "$REPO" show HEAD:settings.json 2>/dev/null | jq -S .enabledPlugins 2>/dev/null || true)" -_ep_work="$(jq -S .enabledPlugins "$REPO/settings.json" 2>/dev/null || true)" +_ep_head="$(git -C "$REPO" show HEAD:settings.json 2>/dev/null | jq -S '{enabledPlugins, skillOverrides}' 2>/dev/null || true)" +_ep_work="$(jq -S '{enabledPlugins, skillOverrides}' "$REPO/settings.json" 2>/dev/null || true)" if [ -z "$_ep_head" ] || [ -z "$_ep_work" ]; then - warn "enabledPlugins check skipped (jq or git show failed)" + warn "enabledPlugins and skillOverrides check skipped (jq or git show failed)" elif [ "$_ep_head" = "$_ep_work" ]; then - pass "settings.json enabledPlugins matches HEAD (no user-scope residue)" + pass "settings.json enabledPlugins and skillOverrides match HEAD (no user-scope residue)" else warn "user-scope residue: $(diff <(echo "$_ep_head") <(echo "$_ep_work") | grep '^[<>]' | tr -s ' ' | tr '\n' ';'); restore per MIGRATION "Profiles and packs" step 1" fi