Fixes selection highlight delay when selecting composer commits with large commits#5001
Merged
Fixes selection highlight delay when selecting composer commits with large commits#5001
Conversation
🤖 Augment PR SummarySummary: Improves Composer commit selection responsiveness when working with very large diffs by decoupling selection highlight rendering from expensive diff/file processing. Changes:
Technical Notes: The delayed dispatch pattern ensures UI feedback is painted before the details panel begins heavy diff rendering, and scheduled diff parsing reduces work in Lit’s microtask update batch. 🤖 Was this summary useful? React with 👍 or 👎 |
5aebdfb to
b4f6333
Compare
Contributor
Author
|
augment review |
Contributor
Author
|
augment review |
d13
approved these changes
Mar 2, 2026
Member
d13
left a comment
There was a problem hiding this comment.
Looks good, but was curious about using double requestAnimationFrame versus using setTimeout(0).
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.
Closes #4872
Reduces the time needed to highlight a commit in the commits panel of the composer when it is selected or shift-selected.
Does this by: