Conversation
…repos When a non-git parent directory contains independent git subdirectories, indexing the parent would include all files from nested repos. Then indexing a sub-repo separately created a duplicate index with the same files. This change: - Skips nested git repo directories during merkle walk when the project root is not itself a git repository - Auto-discovers and indexes each nested git repo separately when running `lumen index` on a non-git parent - Normalizes projectPath to the git repository root in both `cmd/index.go` and `cmd/hook.go` so DB paths are consistent Closes #71 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The RepoRoot normalization added in 8d4065b resolves subdirectories to their enclosing git repo root. Since testdata/sample-project has no .git, it was being resolved to the lumen repo root, causing the CLI tests to index the entire codebase and exceed the embedding model's context length. Fix by copying the sample project to a temp dir with `git init` so RepoRoot resolves to the temp dir itself. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Remove embedder.ModelAliases: exported map never referenced anywhere
- Inline normalizeSymbol and joinKeyPath in structured.go: trivial
3–5 line functions each with exactly one call site
- Replace interface{} with any in store.go insertChunkAndVector signature
- Use strings.SplitSeq in git/worktree.go to avoid slice allocation
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.