Repository navigation
Fix initial sidebar scroll position - #958
Merged
AnthonyRonning merged 1 commit intoSep 18, 2026
Merged
AnthonyRonning merged 1 commit into
AnthonyRonning merged 1 commit into
Conversation
The first task load can arrive after the empty sidebar has rendered, causing the scroll anchor to shift past the inserted rows. Initialize that first list at the top while preserving scroll on later updates.
benthecarman
force-pushed
the
fix/sidebar-initial-scroll
branch
from
September 17, 2026 21:46
c064b91 to
4b0e18d
Compare
Contributor
Author
|
rebased on master to fix ci |
AnthonyRonning
approved these changes
Sep 18, 2026
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.
When tasks load after the empty sidebar has rendered, GPUI's first splice moves the scroll anchor past the inserted rows and opens the sidebar near the bottom.
Initialize the first list contents at the top, regardless of load/render order. Keep incremental splices for subsequent updates so they preserve the user's scroll position.
Validation: Agent
just ci, formatting, and desktop tests passed. Checked delayed loading and wheel scrolling in a native GPUI sidebar fixture with 200 synthetic tasks; authenticated startup was not exercised.