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
{{ message }}
Repository navigation
Incremental update drops JS/TS barrel imports and Markdown file citations when two files share a basename #5675
On v8 at d249de36 (0.9.124), an incremental graphify update loses edges that go through a file whose basename another indexed file also has. Watch mode, the git hooks and incremental graphify extract behave the same way. An importer of a JS/TS barrel such as lib/index.ts loses its import and call edges and gets a phantom import target instead. A Markdown file that links such a file loses its references edge. The edges stay missing until a full rebuild.
graph.json stores colliding file labels as directory suffixes such as lib/index.ts (#2032). The incremental resolver context copies that label, but the barrel and citation resolvers find a file node by its bare basename, so they skip it. A full build resolves before it relabels, so it is not affected.
Reproduction
mkdir -p p/lib p/other &&cd p
printf'export function load() { return 1; }\n'> lib/store.ts
printf"export { load } from './store';\n"> lib/index.ts
printf'export function other() { return 2; }\n'> other/index.ts
printf"import { load } from './lib';\nexport function task() { return load(); }\n"> main.ts
printf'# Notes\n\nSee [the store barrel](lib/index.ts).\n'> NOTES.md
graphify update .echo'// edited'>> main.ts;printf'\nMore text.\n'>> NOTES.md
graphify update .
A full build has main imports lib_store_load, main_task calls lib_store_load and notes references lib_index. After the incremental update only main imports lib_index_load remains, and no full build creates that node. On tauri, appending a comment to packages/api/src/tray.ts and a line to packages/api-e2e/README.md leaves 8 edges missing and 2 phantom edges compared with a cold build.
Activity
github-actions commentedon Dec 1, 2026
Thanks for opening this issue, @Max17190. A maintainer will take a look soon.
If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.
To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.