Skip to content

Limit tree-sitter project indexing memory#644

Merged
jahooma merged 3 commits into
mainfrom
jahooma/fix-tree-sitter-oom-crash
May 11, 2026
Merged

Limit tree-sitter project indexing memory#644
jahooma merged 3 commits into
mainfrom
jahooma/fix-tree-sitter-oom-crash

Conversation

@jahooma
Copy link
Copy Markdown
Contributor

@jahooma jahooma commented May 11, 2026

Caps tree-sitter project symbol indexing to avoid Bun/native memory crashes in large directories. Auto-discovered projects now keep path discovery lightweight, read knowledge files separately, and score source files one at a time through the injected filesystem. The parser skips oversized files before disk reads, releases tree-sitter trees, and exposes env overrides for parse file/byte limits. Validated with focused code-map and SDK tests plus package typechecks.

@jahooma jahooma merged commit 7ce97b3 into main May 11, 2026
35 checks passed
@jahooma jahooma deleted the jahooma/fix-tree-sitter-oom-crash branch May 11, 2026 22:04
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.

1 participant