Repository navigation
fix(threads): keep reports in order and deliver them once - #354
Merged
Merged
Conversation
nixuuu
force-pushed
the
fix/timeline-order-duplicates
branch
from
November 8, 2026 09:29
8f4be87 to
f766fb2
Compare
nixuuu
marked this pull request as ready for review
November 8, 2026 09:46
This was referenced Nov 13, 2026
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.
Report inputs could appear after newer answers, leave empty cancelled work, and repeat for the same child result. Desktop and phone could retain different projections after consumption or reconnect. This keeps report delivery unique per recipient and child turn and preserves the loaded timeline window across recovery.
Causes and evidence
from_turn_idpreserves the inclusive oldest loaded turn on both clients, with authoritative reset for invalid history. Late old turn updates stay outside a loaded tail. Fork ancestry keeps chain order.nightly.100includes #350 and was published at 00:21:46 Warsaw on November 8, before the reported 03:33 observation. Installation on the reporting Mac is unconfirmed. These paths reproduce on a base containing #350 and explain persistence either way. No linked-computer topology is needed.Validation
bun install,bun run gen:check,bun run typecheck(including mobile),bun run lint,bun run format:check, and the web build. The completebun run check:tmpran in four sequential native shards (--shard=1/4through4/4,--timeout 30000): 1780 pass, 161 skip, 0 fail across all 320 files, with a clean test temp directory after each shard. Two monolithic attempts were interrupted by SIGTERM, so sharding completed the full gate. The existing steering regression now expects one shared-result report instead of two./api/computers409.CI: static checks, all four CI test shards, and Web/Linux builds passed on this head. Windows packaging reached the prepared runtime and electron-builder, then failed with HTTP 504; its failed job was retried once. No external review yet; inline self-review found no outstanding issues.
Fixes: #338
Related: #350