Skip to content

fix(vcs): avoid unbounded diff memory usage#25581

Merged
nexxeln merged 3 commits intodevfrom
nxl/rearchitect-vcs-diff
May 3, 2026
Merged

fix(vcs): avoid unbounded diff memory usage#25581
nexxeln merged 3 commits intodevfrom
nxl/rearchitect-vcs-diff

Conversation

@nexxeln
Copy link
Copy Markdown
Member

@nexxeln nexxeln commented May 3, 2026

summary

  • add capped native git patch helpers for tracked, batched, and untracked diffs
  • switch /vcs/diff to batched native git patches with per-file and total response safeguards
  • keep the existing VCS diff response shape while avoiding JS full-file patch generation

Addresses the /vcs/diff memory pressure called out in #22683 and #24049

testing

  • bun test test/git/git.test.ts
  • bun test test/project/vcs.test.ts
  • bun typecheck
  • push hook: bun turbo typecheck

@nexxeln nexxeln merged commit d1f597b into dev May 3, 2026
14 checks passed
@nexxeln nexxeln deleted the nxl/rearchitect-vcs-diff branch May 3, 2026 12:19
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