-
Notifications
You must be signed in to change notification settings - Fork 60k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: prevent message sync between forked sessions by generating unique IDs #6033
base: main
Are you sure you want to change the base?
Conversation
Someone is attempting to deploy a commit to the NextChat Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughThe pull request focuses on improving the Changes
Poem
π Recent review detailsConfiguration used: CodeRabbit UI π Files selected for processing (1)
π Additional comments (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? πͺ§ TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
π» εζ΄η±»ε | Change Type
π εζ΄θ―΄ζ | Description of Change
Fixed message synchronization issue in chat session fork functionality. In the previous implementation, messages in forked sessions shared the same object references with the original session, causing edits in one session to affect the other. This has been resolved by implementing deep copy of messages during fork operation and generating new IDs for each message, ensuring complete independence between sessions.
Key changes:
forkSession
methodπ θ‘₯ε δΏ‘ζ― | Additional Information
This fix addresses the following scenarios:
This change does not impact other functionalities and only optimizes the session fork behavior to meet user expectations.
Summary by CodeRabbit