fix(dashboard): collapse the safety-net duplicate in the session feed - #479
Merged
Conversation
The runtime emits a turn's final assistant text as BOTH agent.message@progress (streamed by translate) and agent.message@user (the answer, via the adapter safety-net) — so it rendered twice in the "all" view (every claude turn, since claude answers in plain text not `say`). Drop the @progress copy when an identical-text @user message exists in the same turn. The "user" view was already single (it only shows @user). web tsc -b + vite build clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The two dedup-key template literals had a NUL (0x00) where a space belonged
(`${turn_id}\0${text}`), which made git + GitHub flag the whole file binary and
hide the diff. Functionally harmless (NUL matched NUL on both sides), but replace
with real spaces so the source is clean and the diff renders.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Re-homes the session-feed dedup fix that landed on the #478 branch after #478 merged (so it never made it into main).
Bug: the runtime emits a turn's final assistant text as BOTH
agent.message@progress(streamed bytranslate) andagent.message@user(the answer, via the adapter safety-net) — so it renders twice in the "all" event view, on every claude turn (claude answers in plain text, notsay).Fix: in the feed builder, drop the
@progresscopy when an identical-text@usermessage exists in the same turn. The "user" view was already single (it only shows@user).web
tsc -b+vite buildclean. One file (SessionDetail.tsx).🤖 Generated with Claude Code