Home

giogio / openez-graph

public
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix(indexer): build symbol-aware chunks for native-indexed Python/Go/Rust

3 months ago

c16f05f
Authored
asta-nguyen8/8/2026, 6:45:11 AM
Native batch parse created line-based fallback chunks (80-line slices)
with no symbolName in metadata. The graph build maps symbolName →
chunkId to set refId on symbol nodes — without symbolName, refId was
always null, so code_context couldn't find source snippets for any
Python/Go/Rust symbol.

Fix: use createSymbolChunks() when symbols exist (sets heading,
symbolName, symbolType, searchText, proper token counts), and
makeFallbackChunks() only when no symbols were extracted. Also
bound chunks to configured token limits via boundChunks(), which
the old code skipped entirely.

Typecheck 8/8, tests 144 pass.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

Parent7f91ec8

1 file changed
  • packages/indexer/src/index-workspace.ts+20−28