Repository navigation
fix(host): keep a replayed compaction off the remote mirror - #1693
Merged
Merged
Conversation
A session-scope replay carries every manual compaction the conversation ever had, and the observer already dropped those for the webview. The mirror lane published them anyway, so a phone with no durable position for an old checkpoint appended its divider at the bottom of the timeline, over the streaming row (measured 2026-11-25 on a2677cac: 11-23 and 11-24 dividers under the newest reply while the session's context was intact). Gate the mirror publish with the same replay rule and record published events in a test-only recorder, so both lanes are asserted end to end.
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.
Summary
A session-scope replay re-sends every manual compaction a conversation ever had. The observer already dropped those replays for the desktop webview, but the remote mirror still published them, so a phone with no durable position for an old checkpoint appended its divider at the bottom of the timeline, over the streaming row (measured 2026-11-25 on
a2677cac: 11-23 and 11-24 dividers under the newest reply while the session's own context was intact). This PR gates the mirror publish with the same replay rule and adds a test-only recorder so both lanes are asserted end to end.Commits
Verification
cargo fmt --all -- --check— clean (rust 1.99.1, the pinned toolchain)cargo clippy -p future-host --all-targets -- -D warnings— cleancargo test -p future-host --lib— 2362 passed, 0 failed, 15 ignored (854.49s)User-visible changes
e6a6838ae.