Skip to content

Worktree query fails after successful force index generate #153

@Kadajett

Description

@Kadajett

Summary

In a git worktree, semfora-engine index generate --force reports a successful full rebuild, but semfora-engine query file ... immediately fails because the referenced symbol index file does not exist.

Environment

  • semfora-engine version: current local install on 2026-03-10
  • repo path: /home/kadajett/dev/prismProxy-parent/prism-pipe-main-doc
  • this path is a git worktree for the same repo as another checkout

Repro

cd /home/kadajett/dev/prismProxy-parent/prism-pipe-main-doc
semfora-engine index generate --force
semfora-engine query file src/proxy-instance.ts

Observed

index generate --force reports success:

  • files indexed: 161
  • symbols indexed: 1028
  • modules: 45
  • errors: 0

Immediately after that, query file fails with:

Error: File not found: Failed to load symbol index: File not found: /home/kadajett/.cache/semfora/6ee3653dcdfa6b78/symbol_index.jsonl

Expected

If the force rebuild succeeds, query file should be able to read the generated symbol index for that same repo/worktree.

Notes

I also saw earlier cases where incremental indexing in worktrees reported odd zero-symbol states, but the missing symbol_index.jsonl after a successful force rebuild is the cleanest repro.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions