mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
hotfix(frontend): Prevent merging conversation events when switching between conversations (#8614)
This commit is contained in:
parent
f1897b8095
commit
7305c8fb31
@ -261,6 +261,11 @@ export function WsClientProvider({
|
||||
}, [conversationId]);
|
||||
|
||||
React.useEffect(() => {
|
||||
// reset events when conversationId changes
|
||||
setEvents([]);
|
||||
setParsedEvents([]);
|
||||
setStatus(WsClientProviderStatus.DISCONNECTED);
|
||||
|
||||
if (!conversationId) {
|
||||
throw new Error("No conversation ID provided");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user