mirror of
https://github.com/giancarloerra/socraticode.git
synced 2026-07-03 14:05:21 +02:00
fc3c2988fa
resolveLinkedCollections() was calling projectIdFromPath() for linked projects, which with SOCRATICODE_BRANCH_AWARE=true appended the linked project's git branch to its ID. Linked projects indexed without branch-aware mode don't have __branch collections, so lookups failed. Extract coreProjectId() helper (hash-only, no branch suffix) and use it for linked projects. Also fix dedup to compare collection names instead of raw IDs to handle the branch suffix mismatch. Adds unit test verifying linked collection names are branch-agnostic.