Skip to content

Add message deduplication to mobile chat screen#82

Merged
gricha merged 1 commit intomainfrom
mobile-message-deduplication
Jan 10, 2026
Merged

Add message deduplication to mobile chat screen#82
gricha merged 1 commit intomainfrom
mobile-message-deduplication

Conversation

@gricha
Copy link
Copy Markdown
Owner

@gricha gricha commented Jan 10, 2026

Summary

  • Implement proper message ID-based deduplication in mobile app matching web UI behavior
  • User messages deduplicate by messageId (or fallback to timestamp:content)
  • Tool use/result messages deduplicate by toolId
  • Track currentMessageIdRef during streaming and propagate to all parts
  • Add Maestro e2e test for chat screen UI

Test plan

  • Open mobile app and start a chat session
  • Send messages and verify no duplicates on reconnect
  • Verify tool use/results don't duplicate when rejoining running session
  • Run bun run test:e2e:chat (requires Maestro + simulator)

🤖 Generated with Claude Code

Implement proper message ID-based deduplication matching the web UI:
- Track seen messages using seenMessageChunksRef Set
- User messages deduplicate by messageId or timestamp+content fallback
- Tool use/result messages deduplicate by toolId
- Propagate messageId through streaming parts
- Add Maestro e2e test for chat screen

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@gricha gricha merged commit 9ba028a into main Jan 10, 2026
9 checks passed
@gricha gricha deleted the mobile-message-deduplication branch January 10, 2026 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant