mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-11 16:26:08 +00:00
The single InstalledDistScanBudget is consumed across all three prune walks (legacy-deps prepass, dist file listing, empty-dir sweep). During an npm upgrade the dist dir transiently holds old+new content-hashed files, so a real upgrade scan totals ~24k entries against the 25k cap; one more release of dist growth would make 'npm install -g openclaw' throw InstalledDistScanLimitError for every upgrading user. Raise the cap to 100k for real headroom while keeping the unbounded-scan guard, and ratchet the cap in the test so it cannot be lowered back.
35 KiB
35 KiB