Repository navigation
Conversation
An opened room stopped waiting for its first unread message once the first page of history was loaded. The SDK delivers the items of that page, and with them the read marker, after PaginateBackwards returned: in between the TUI saw no marker, showed the end of the timeline and sent a read receipt. While the room has unread messages it now keeps waiting for the marker, moving in the timeline ends the wait, so the room is still marked as read when the marker never comes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #218 +/- ##
==========================================
+ Coverage 79.72% 79.80% +0.08%
==========================================
Files 76 76
Lines 7240 7250 +10
Branches 928 933 +5
==========================================
+ Hits 5772 5786 +14
+ Misses 1160 1156 -4
Partials 308 308 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
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.



Fixes the flaky
UnreadMessages_ShouldBeCountedInTheRoomList(TUI client tests), which failed 4 of ~8 CI runs of the recent Renovate PRs withTimed out after 00:00:30 waiting for "Rooms (1 unread)".Cause
Reproduced locally (4 cores under load) with temporary logging of
ShowTimeline:ChatWindow.ShowTimelinestopped waiting for the read marker onceOpenedRoom.LoadedHistorywas set, but the SDK delivers the paginated items (and the marker) asynchronously afterPaginateBackwardsreturns.Fix
Tests
RoomTests60× pinned to 4 loaded cores (the setup that reproduced the flake at run 39 before): no unread failure. One run failed all 8 tests at once, a homeserver/container setup failure that also happened before the fix.🤖 Generated with Claude Code