qwen-code/packages
tanzhenxin e216ab35fc
fix(core): cap recursive file crawler at 100k entries to prevent OOM (#3138)
When the @ autocomplete triggers RecursiveFileSearch, the crawler
materialises the entire project tree into memory with no upper bound.
For very large workspaces (missing .gitignore, huge node_modules, home
directory as cwd) this pushes Node.js past its heap limit and crashes.

- Add `maxFiles` option to CrawlOptions; use fdir's withMaxFiles() to
  stop traversal early instead of post-hoc truncation
- Apply file-level ignore patterns during crawl via fdir filter() so
  ignored files don't consume the maxFiles budget
- Include maxFiles in the crawl cache key for correctness
- Set MAX_CRAWL_FILES = 100 000 in RecursiveFileSearch (caps peak
  memory at ~50 MB for the file list)

Fixes #3130
2026-04-11 16:44:02 +08:00
..
channels chore: bump version to 0.14.3 (#3112) 2026-04-10 21:08:34 +08:00
cli feat(cli): queue input editing — pop queued messages for editing via ↑/ESC (#2871) 2026-04-11 14:38:32 +08:00
core fix(core): cap recursive file crawler at 100k entries to prevent OOM (#3138) 2026-04-11 16:44:02 +08:00
sdk-java feat: simplify subagent model configuration with model selector 2026-03-27 11:49:45 +08:00
sdk-typescript Merge pull request #2698 from QwenLM/refactor/subagent-model-selection 2026-04-01 16:17:54 +08:00
test-utils chore: bump version to 0.14.3 (#3112) 2026-04-10 21:08:34 +08:00
vscode-ide-companion feat(i18n): add French (fr-FR) locale support (#3126) 2026-04-11 11:07:01 +08:00
web-templates chore: bump version to 0.14.3 (#3112) 2026-04-10 21:08:34 +08:00
webui chore: bump version to 0.14.3 (#3112) 2026-04-10 21:08:34 +08:00
zed-extension chore(zed-extension): update package version to 0.10.0 2026-02-06 14:26:01 +08:00