Skip to content

Fix stale reference cleanup - #2700

Merged
Widthdom merged 4 commits into
mainfrom
codex/fix-issue1781-1785-1826
May 25, 2026
Merged

Fix stale reference cleanup#2700
Widthdom merged 4 commits into
mainfrom
codex/fix-issue1781-1785-1826

Conversation

@Widthdom

Copy link
Copy Markdown
Owner

Summary

  • Add ON DELETE SET NULL handling for symbol_references.reference_line_id, including migration cleanup for existing dangling line-context pointers.
  • Batch stale file purges with chunked DELETE ... IN (...) statements.
  • Remove cross-file references to symbols whose only remaining definitions are in files being purged.

Validation

  • dotnet test
  • dotnet ./src/CodeIndex/bin/Debug/net8.0/cdidx.dll index . --rebuild --yes --json
  • dotnet ./src/CodeIndex/bin/Debug/net8.0/cdidx.dll status --check --json
  • Adversarial review: No blocking/actionable issues found.

Documentation / Changelog

  • changelog.d/unreleased/1781.fixed.md
  • changelog.d/unreleased/1785.fixed.md
  • changelog.d/unreleased/1826.fixed.md

Follow-up Candidates

  • None.

Fixes #1781
Fixes #1785
Fixes #1826

@Widthdom
Widthdom marked this pull request as ready for review May 25, 2026 08:51
@Widthdom
Widthdom merged commit ed77ad9 into main May 25, 2026
10 checks passed
@Widthdom
Widthdom deleted the codex/fix-issue1781-1785-1826 branch May 25, 2026 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant