Skip to content

Fix conversation leakage in RemembersConversations::forUser()#260

Open
Button99 wants to merge 1 commit intolaravel:0.xfrom
Button99:fix/conversation-leak
Open

Fix conversation leakage in RemembersConversations::forUser()#260
Button99 wants to merge 1 commit intolaravel:0.xfrom
Button99:fix/conversation-leak

Conversation

@Button99
Copy link
Contributor

This PR fixes a security bug where reusing an agent instance across multiple users would leak conversation history between users.

This happens because the forUser() method only updates the $conversationUser and does not reset the $conversationId. When the same agent instance is used for multiple users, the second user would continue 1st user's conversation, allowing access to private conversation history.

The fix resets $conversationId to null in forUser() to ensure each user starts a new conversation.

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