8000 fix(reader): load bodies a remembered conversation lacks by Dandiccf · Pull Request #461 · hyprlab/hylki · GitHub
[go: up one dir, main page]

Skip to content

fix(reader): load bodies a remembered conversation lacks - #461

Closed
Dandiccf wants to merge 1 commit into
hyprlab:mainfrom
Dandiccf:fix/thread-missing-bodies
Closed

Dandiccf wants to merge 1 commit into
hyprlab:mainfrom
Dandiccf:fix/thread-missing-bodies

Conversation

@Dandiccf
Copy link
Copy Markdown
Contributor

A card stuck on "Loading…" in a conversation

Seen on a Microsoft 365 account: in a six-message conversation, the first message (filed in Archive, the rest in the Inbox) showed "Loading…" every time the conversation was opened, though its body was in the cache.

Cause. A conversation is kept in thread_cache for an instant return. A body that arrives after the conversation was put away is filed in body_cache and the open thread, never in the remembered copy. Showing a remembered conversation then:

  • took the copy as it was, without filling empty bodies from body_cache or asking for them, and
  • merge_related returned early when the lookup added nothing new, before its own request for missing bodies.

So a member from another folder whose body came late stayed empty for as long as the conversation was remembered.

Fix. A new load_missing_thread_bodies fills empty members from body_cache and asks the workers for the rest. It runs when a remembered conversation is shown (leaving out the row's own message, which has its own request) and on both paths of merge_related.

Testing

  • cargo test: 785 passed. Clippy: nothing on changed lines.
  • Reproduced with a copy of the affected profile, offline: a temporary hook emptied the Archive member's body in the remembered conversation, left it and came back. Before the fix the member stayed empty (empty_bodies=["…@softcom.digital"]), after it none was (empty_bodies=[]), and the card shows its message.

This PR was prepared with AI assistance (Claude Code) and reviewed by me.

🤖 Generated with Claude Code

A conversation is kept for a quick return. One put away before the body of a member from another folder arrived kept that card empty, and showing it again neither filled it from the bodies already held nor asked for it, so it said "Loading..." for good. The remembered conversation and a lookup that adds nothing now both fill and request missing bodies.
hyprlab added a commit that referenced this pull request Oct 16, 2026
A conversation shown again from memory kept a card empty whose body arrived after it was put away, so a member from another folder said "Loading..." for good. Showing it now fills such cards from the bodies already held and asks for the rest.

Co-Authored-By: Christian Dandachi <9442922+Dandiccf@users.noreply.github.com>
@hyprlab
hyprlab commented Oct 18, 2026
Copy link
Copy Markdown
Owner

Agentic reply:

Your fix is in the 1.45.0-beta.1 release (x86_64 only), without the extra body request on a remembered conversation's early return, which fetched bodies a second time when they were already on their way. 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: flatpak update picks it up.

@hyprlab hyprlab closed this Oct 18, 2026
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

0