Skip to content

nebula: scrolling back mounts the history it just fetched again - #116

Merged
SetZero merged 1 commit into
developfrom
fix/history-window
Sep 17, 2026
Merged

SetZero merged 1 commit into
developfrom
fix/history-window

Conversation

@SetZero

@SetZero SetZero commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Fixes a regression on develop: after the message list learned to tell a page of fetched history from new arrivals, scrolling back fetched the older page but never showed it.

The render window was being moved along with a prepend. Every index shifts when history is added at the front, so a window that stays where it is already looks at the rows that just arrived; moving it with them pinned the reader to the same messages and paged in history they could never reach. The window is left alone on a prepend again, as it always was. What stays from the earlier change is the part that was right: the false "N new messages" pill is suppressed for a prepend, and only on positive evidence that it was one.

Touches MessageList.tsx and its test only. The unit suite was green with the regression in place - it was the end-to-end suite driving the real client that caught it - so the test added here asserts that the fetched rows are actually mounted.

Expect this PR's first CI run to be red for reasons that are not in it: develop does not yet have the CI fixes from #115 (format gate on a CRLF checkout, clippy 1.98, two platform-dependent tests). It goes in after #115, updated onto it.

The window is left where it is on a prepend, as it always was: every index
has shifted, so a window that does not move is looking at the rows that
arrived. Moving it with them pinned the reader to the same messages and
paged in history they could never reach. Only the false "N new messages"
announcement is suppressed now, and only on positive evidence.
@SetZero
SetZero merged commit 22bdef5 into develop Sep 17, 2026
1 of 11 checks passed
SetZero added a commit to GItwsa/FancyMumble that referenced this pull request Sep 28, 2026
nebula: scrolling back mounts the history it just fetched again
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.

1 participant