Skip to content

Deduplicate project indexes by git/path identity#754

Open
Andy11-cpu wants to merge 1 commit into
DeusData:mainfrom
Andy11-cpu:fix/project-dedup
Open

Deduplicate project indexes by git/path identity#754
Andy11-cpu wants to merge 1 commit into
DeusData:mainfrom
Andy11-cpu:fix/project-dedup

Conversation

@Andy11-cpu

Copy link
Copy Markdown

Summary

  • Add project_resolve module to match repos by git canonical root or canonical path
  • Reuse existing cached project names when the same repo is opened from a different path
  • MCP session detection and pipeline creation both use the resolver

Motivation

Split from #625 — prevents duplicate .db files when the same repository is indexed from multiple paths.

Test plan

  • test_project_resolve.c (canonicalize, identity key, find existing, pipeline reuse)
  • make -f Makefile.cbm test (CI)

Signed-off-by: Andy11-cpu canada11@duck.com

Reuse an existing cached project when the same repository is opened from a different path. Match by git canonical root or canonical filesystem path so duplicate .db files are not created.

Signed-off-by: Andy11-cpu <canada11@duck.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant