fix: cloud dashboard message duplication and attribution#183
Merged
khaliqgant merged 1 commit intomainfrom Jan 14, 2026
Merged
Conversation
Fixes issue where messages sent from cloud dashboard appeared twice: once as "_DashboardUI" and once with correct username. Also removes "_DashboardUI" from agent sidebar. Root cause: Optimistic messages used logged-in username while server messages used relay client name "_DashboardUI". Fingerprint mismatch prevented deduplication. Changes: - Frontend deduplication now matches on to+content only (excludes from) - Backend preserves senderName in message data field - Display logic uses data.senderName for proper attribution - AgentList filters out _DashboardUI from sidebar 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
🤖 My Senior Dev — Analysis Complete👤 For @khaliqgant📁 Expert in View your contributor analytics → 📊 3 files reviewed • 1 high risk • 4 need attention 🚨 High Risk:
🚀 Open Interactive Review →The full interface unlocks features not available in GitHub:
💬 Chat here: 📖 View all 12 personas & slash commandsYou can interact with me by mentioning In PR comments or on any line of code:
Slash commands:
AI Personas (mention to get their perspective):
For the best experience, view this PR on myseniordev.com — includes AI chat, file annotations, and interactive reviews. |
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
Fixes message duplication and incorrect attribution when sending messages from the cloud dashboard.
Before:
After:
Root Cause
Optimistic messages created by frontend used logged-in username (e.g., "khaliqgant"), while server-confirmed messages used relay client name ("_DashboardUI"). The deduplication fingerprint included the 'from' field, causing mismatch and displaying both messages.
Changes
Frontend Deduplication (
useMessages.ts)to + contentonlyfromfield to handle server/client sender differencesBackend Attribution (
server.ts)senderNameto message data field in/api/sendmapStoredMessagesto usedata.senderNamefor display when sender is_DashboardUISidebar Filtering (
AgentList.tsx)_DashboardUIfrom agent listTest Plan
🤖 Generated with Claude Code