Skip to content

Fix initial sidebar scroll position - #958

Merged
AnthonyRonning merged 1 commit into
MaplePrivacyLabs:masterfrom
benthecarman:fix/sidebar-initial-scroll
Sep 18, 2026
Merged

AnthonyRonning merged 1 commit into
MaplePrivacyLabs:masterfrom
benthecarman:fix/sidebar-initial-scroll

Conversation

@benthecarman

Copy link
Copy Markdown
Contributor

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.

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
benthecarman force-pushed the fix/sidebar-initial-scroll branch from c064b91 to 4b0e18d Compare September 17, 2026 21:46
@benthecarman

Copy link
Copy Markdown
Contributor Author

rebased on master to fix ci

@AnthonyRonning
AnthonyRonning merged commit 77b92f5 into MaplePrivacyLabs:master Sep 18, 2026
22 checks passed
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.

2 participants