Repository navigation
fix(positron): dedup chat projection by (sender, content) — kill the #16 doubled-turns bug - #1808
Merged
Merged
Conversation
doubled-turns bug The bug hurting every interface: personas' turns rendered TWICE (Asha-A, Solenne-B, Asha-A, Solenne-B) on web, terminal, and RAG. Root-caused empirically: the live persona conversation is airc-native (continuum main.db held only 4 human test messages), and the same logical block replays through the bus with a FRESH message_id each hop (#16 multi-hop). apply_message deduped only on message_id, so the fresh-id replay slipped through and double-appended. Fix: apply_message is now idempotent on message_id AND on (sender_id, content) — the same content identity the cognition admission dedup already uses (content_hash, cognition_io.rs). One (sender, content) is one message however many ids the bus mints for it; a genuinely new message still appends. Verified: 13/13 positron_source tests green incl. the new multi_hop_replay_with_fresh_id regression (3 fresh-id copies → 1 message; new content → 2). Live effect lands on next core boot — the projection collapses the replayed block. Fixes the visible duplication behind the desktop love-pass caveat. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
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.
The bug hurting every interface: personas' turns rendered TWICE (Asha-A, Solenne-B, Asha-A,
Solenne-B) on web, terminal, and RAG. Root-caused empirically: the live persona conversation is
airc-native (continuum main.db held only 4 human test messages), and the same logical block replays
through the bus with a FRESH message_id each hop (#16 multi-hop). apply_message deduped only on
message_id, so the fresh-id replay slipped through and double-appended.
Fix: apply_message is now idempotent on message_id AND on (sender_id, content) — the same content
identity the cognition admission dedup already uses (content_hash, cognition_io.rs). One (sender,
content) is one message however many ids the bus mints for it; a genuinely new message still appends.
Verified: 13/13 positron_source tests green incl. the new multi_hop_replay_with_fresh_id regression
(3 fresh-id copies → 1 message; new content → 2). Live effect lands on next core boot — the projection
collapses the replayed block. Fixes the visible duplication behind the desktop love-pass caveat.
Co-Authored-By: Claude Opus 4.8 [email protected]
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo