Skip to content

fix: update brain index for changed files#48

Open
zerone0x wants to merge 1 commit into
get-vix:mainfrom
zerone0x:fix/issue-20-brain-update-files
Open

fix: update brain index for changed files#48
zerone0x wants to merge 1 commit into
get-vix:mainfrom
zerone0x:fix/issue-20-brain-update-files

Conversation

@zerone0x

@zerone0x zerone0x commented Jul 4, 2026

Copy link
Copy Markdown

Summary

Fixes #20

Implement the previously-stubbed brain.update_files handler so file mutations refresh the persisted brain index instead of returning a no-op success.

Changes

  • Load/create .vix/index.json for the project and upsert metadata for changed files
  • Remove deleted files and stale symbols/imports/calls from the index
  • Refresh per-file symbol/import analysis and recompute project metadata/hub files
  • Add focused tests for upsert and deletion behavior

Test Plan

  • PATH=/home/june/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.26.0.linux-amd64/bin:$PATH go test ./internal/daemon/brain
  • PATH=/home/june/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.26.0.linux-amd64/bin:$PATH go test ./internal/daemon (fails in this clone because vendored tree-sitter grammar bindings are missing generated C sources; unrelated to this change)

Fixes get-vix#20

Co-Authored-By: Hermes Agent <noreply@nousresearch.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

brain.update_files handler is a no-op — brain index never updates after startup

1 participant