Skip to content

fix(ui): preserve live journal events while history loads - #5999

Merged
SteKoe merged 1 commit into
codecentric:masterfrom
Aminark:fix/journal-initial-event-merge
Nov 28, 2026
Merged

SteKoe merged 1 commit into
codecentric:masterfrom
Aminark:fix/journal-initial-event-merge

Conversation

@Aminark

@Aminark Aminark commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Opening the journal subscribes to live events while the initial history request is still in flight. When that request finishes it replaces the whole list, which can drop a new status change. History entries also received a version based on their array position, so the same event could appear again on replay.

Merge the snapshot with the live events using their server-provided keys. Keep paused arrivals hidden until automatic updates resume and order the visible history by timestamp.

The regression test holds the history request open, delivers overlapping events through the stream, pauses and resumes updates, and replays an event from the snapshot. It checks the order and that each event appears once.

@Aminark
Aminark requested a review from a team as a code owner November 27, 2026 16:32
@SteKoe
SteKoe merged commit 0f8cfd0 into codecentric:master Nov 28, 2026
2 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