You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(codegraph): index check requires the db file; uninstall prunes dangling Gemini fileName refs
Tier-3 polish, follow-up to the non-interactive/PATH/gitignore fixes.
1. codegraph-session-check.sh: treat a project as initialized only when
.codegraph/ actually contains an index db (*.db), not merely the dir. An
aborted/half-finished `codegraph init` leaves a bare .codegraph/ dir that
previously made once-mode go silent on a broken index. The check stays a
pure filesystem test (no per-session `codegraph status`), preserving
once-mode's fast no-op; deep corruption stays status/--always's job. This
aligns the hook with the policy's 'indexed = .codegraph/ exists AND status
succeeds'.
2. uninstall.sh: reverse install's Gemini context.fileName additions, but
ONLY for entries whose instruction file no longer exists after uninstall
(a dangling reference). A GEMINI.md/AGENTS.md the user still has is left
referenced, so config they rely on is never removed. (Previously uninstall
left every fileName entry.) AGENTS.md is pruned in project scope only;
globally that entry means 'read each project's AGENTS.md', which the global
install does not own.
Regenerated agent-primer.sh; added smoke coverage (half-built index nudges;
dangling refs pruned; a surviving file's ref kept). 69 smoke checks pass.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments