Environment
- OS: Windows 11
- CodeGraph: npm global install
- Backend: native
- Project type: Git repository with newly-created untracked source files
What happened
I initialized and synced a project that had newly-created untracked source files.
cd D:\agent\ai
codegraph init -i
codegraph status
codegraph sync
codegraph status
codegraph sync reported success:
Synced 21 changed files
Added: 21 - 747 nodes in 1.2s
However, codegraph status still reports the same pending changes:
Pending Changes:
Added: 21 files
[i] Run "codegraph sync" to update the index
Expected behavior
After codegraph sync successfully indexes the added files, codegraph status should not continue reporting those same files as pending.
Actual behavior
status keeps reporting the untracked files as pending even though the symbols from those files are queryable.
For example, after sync these new symbols are found:
codegraph query AdminQuotaView --limit 5
codegraph query RagFeedbackService --limit 5
Both return results from newly-created files, including:
ai-entitlement-api/src/main/java/com/demo/entitlement/api/dto/AdminQuotaView.java
ai-rag-impl/src/main/java/com/demo/service/RagFeedbackService.java
ai-rag-impl/src/test/java/com/demo/service/RagFeedbackServiceTest.java
Notes
This looks specific to Git untracked files. The files remain ?? in git status, but they have already been indexed into .codegraph/codegraph.db.
So this appears to be a status/change-detection issue rather than an indexing issue.
Environment
What happened
I initialized and synced a project that had newly-created untracked source files.
cd D:\agent\ai codegraph init -i codegraph status codegraph sync codegraph statuscodegraph syncreported success:However,
codegraph statusstill reports the same pending changes:Expected behavior
After
codegraph syncsuccessfully indexes the added files,codegraph statusshould not continue reporting those same files as pending.Actual behavior
statuskeeps reporting the untracked files as pending even though the symbols from those files are queryable.For example, after sync these new symbols are found:
Both return results from newly-created files, including:
Notes
This looks specific to Git untracked files. The files remain
??ingit status, but they have already been indexed into.codegraph/codegraph.db.So this appears to be a status/change-detection issue rather than an indexing issue.