Repository navigation
fix: prevent stale conversation messages during session switch - #18140
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
ChangesConversation synchronization
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
wangq8
left a comment
There was a problem hiding this comment.
Good fix for a race condition during conversation switching. The guard conversation?.id !== conversationId correctly prevents stale messages from leaking into a new session. Adding conversation?.id to the dependency array is the right call since the effect now reads it. LGTM.
Summary
fix: prevent stale conversation messages during session switch