Repository navigation
fix(editor): scope combined diff status invalidation by path - #35570
Merged
Merged
Conversation
This was referenced Oct 29, 2026
OrcaWin
force-pushed
the
OrcaWin/combined-diff-path-revalidation
branch
from
October 29, 2026 04:30
a048d47 to
ffce88b
Compare
OrcaWin
marked this pull request as ready for review
October 29, 2026 04:44
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 14 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
[Medium impact] This PR appears safe to merge; no actionable issues were found. SummaryThis PR limits status-driven combined-diff reloads to loaded rows whose own path metadata changed.
Reviews (1) · Last reviewed commit: "fix(editor): scope combined diff status ..." · Reviewed by Greptile |
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.
A status change on one path could invalidate every loaded combined-diff row. For example, changing the staged side of one file while reviewing unstaged changes left the view's entries stable but revalidated all loaded siblings. Revalidation now compares per-path metadata, so only sections for changed paths lose their loaded state. The existing cache signature and dirty, in-flight, collapsed, offscreen, coalescing, and watch-gap recovery behavior are preserved.
This addresses part of #35479; whole-view resets when visible entry metadata changes, serial loading, queue order, and per-file Git reads remain separate work. No runtime latency or frame-rate improvement is claimed.
Testing
use-combined-diff-section-revalidation.test.tsxdrives the real entry-set and revalidation hooks: reordered status records reload nothing, and a staged-side change or disappearance on one path reloads only that path's loaded row. It fails with the two production files restored tomain.ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --maxWorkers=2: 22/22 checks passed on the rebased head. No app was launched.Visual Proof
N/A — this changes invalidation admission without changing the rendered design. No rendered latency or frame-rate improvement is claimed.
Agent skill upstream boundary