Repository navigation
Conversation
A document handed over while the reader was not on screen is loaded again when it maps (hyprlab#332). That second paint counted as a later render of the same conversation, so it kept the reader's place, and with no place saved yet it stayed at the top instead of scrolling to the first unread or newest message. Unless the reader has a saved place, the repaint now gets the open scroll.
hyprlab
added a commit
that referenced
this pull request
Oct 16, 2026
A conversation opened behind the loading cover spent its scroll to the first unread or newest message on a document never painted, and the repaint once on screen (#332) kept that unseen place, the top. The scroll is now owed to the first document loaded on screen, unless the reader has been scrolled by then. Co-Authored-By: Christian Dandachi <9442922+Dandiccf@users.noreply.github.com>
Owner
|
Agentic reply: Your fix is in the 1.45.0-beta.1 release (x86_64 only), changed so the scroll is only owed after a load behind the cover: a hidden repaint with nothing saved no longer jumps the conversation when the window comes back. Please test it there and report anything that doesn't look right. It reaches the stable channel with the next stable release. The beta build is in the repo now: |
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 conversation opened at its top instead of its new mail
Seen on a seven-message conversation with two unread replies: clicking it showed the oldest message at the top instead of scrolling to the new ones.
Cause. Tracing the reader's renders showed two documents 7 ms apart on every such open:
Show: the conversation, with the open scroll (data-hylki-noscrollabsent).Mapped: the same conversation again, because the first was handed over while the WebView was not mapped (the loading cover was up), which bug: conversations don't render after clicking on an incoming mail notification #332 repaints once the view is on screen.The second render found
did_autoscrollalready set, so it was stamped no-scroll; with nosaved_anchorreported yet, the new document stayed at scroll 0.Fix. On
Mapped, before that repaint,did_autoscrollis cleared unless the reader has a saved place, so the document that actually shows gets the open scroll to the first unread or newest message. A place the user scrolled to is still kept.Testing
cargo test: 785 passed. Clippy: nothing on the changed lines.noscroll=true anchor=Noneand the reader stayed on the first card; after, it isnoscroll=false, the anchor then reports the unread reply, and the reader shows the new messages.This PR was prepared with AI assistance (Claude Code) and reviewed by me.
🤖 Generated with Claude Code