fix(app): MEMORY / OOM crash - add experimental flag to disable vcs diff auto-fetch#24079
Open
jeremyakers wants to merge 3 commits intoanomalyco:devfrom
Open
fix(app): MEMORY / OOM crash - add experimental flag to disable vcs diff auto-fetch#24079jeremyakers wants to merge 3 commits intoanomalyco:devfrom
jeremyakers wants to merge 3 commits intoanomalyco:devfrom
Conversation
Contributor
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
This was referenced Apr 24, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Partially fixes #24049 and #22683
Type of change
What does this PR do?
Adds an experimental
disable_vcs_diffconfig flag and uses it to skip the web app's automaticvcs.difffetch.This is a mitigation for workspaces where
/vcs/diffcan be very expensive or crash the server, especially umbrella workspaces with nested git repos/worktrees.This does not fully fix the underlying
/vcs/diffscalability issue in #24049. It preserves the current default behavior and gives affected users an opt-in escape hatch while broader fixes are considered.How did you verify your code works?
Tested locally with a built
opencodebinary against a large umbrella workspace.experimental.disable_vcs_diffunset, the existing behavior is unchanged.experimental.disable_vcs_diff: true, the desktop-layout web UI no longer emitsGET /vcs/difffrom the automatic review/diff path./vcs/diffrequests, heap warnings, or OOM crashes were observed in the logs.bun --cwd packages/opencode typecheck.bun --cwd packages/app typecheck.bun turbo typechecksuccessfully.Screenshots / recordings
N/A. This is a config-gated behavior change, not a visual UI change.
Checklist