Skip to content

Conversation

cameronvoell
Copy link
Contributor

@cameronvoell cameronvoell commented Jul 15, 2025

Implement real-time message streaming with automatic reconnection and exponential backoff retry logic in ConversationScreen component

The ConversationScreen component now implements real-time message streaming functionality with automatic reconnection capabilities:

  • Adds message streaming with up to 10 retry attempts using exponential backoff when connections fail
  • Combines fetched messages with streamed messages, removing duplicates and sorting by timestamp in filteredMessages useMemo
  • Implements stream cleanup handling through streamCleanupRef and comprehensive useEffect hook
  • Updates refresh mechanism via handleRefreshMessages function to clear streamed messages before fetching
  • Removes single attachment preview functionality and unused attachment state variable
  • Applies minor formatting improvements to contentTypeTests.ts and dmTests.ts

📍Where to Start

Start with the new useEffect hook in ConversationScreen.tsx that sets up the message streaming functionality and retry logic.


Macroscope summarized 0e16795.

@cameronvoell cameronvoell requested a review from a team as a code owner July 15, 2025 18:56
@changeset-bot
Copy link

changeset-bot bot commented Jul 15, 2025

⚠️ No Changeset found

Latest commit: 0e16795

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@cameronvoell cameronvoell changed the title Stream messages in conversation screen, reconnect when connection drops Stream messages in conversation screen, reconnect when connection drops - example app Jul 15, 2025
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