Skip to content

codegraph status still reports untracked files as pending after sync #206

@15290391025

Description

@15290391025

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions