Fixed intermittent missing extension override on ui and cleanup (#9575)
Signed-off-by: Angie Jones <jones.angie@gmail.com> Co-authored-by: Angie Jones <jones.angie@gmail.com>
This commit is contained in:
@@ -748,7 +748,9 @@ export function useChatStream({
|
||||
},
|
||||
},
|
||||
});
|
||||
window.dispatchEvent(new CustomEvent(AppEvents.SESSION_EXTENSIONS_LOADED));
|
||||
window.dispatchEvent(
|
||||
new CustomEvent(AppEvents.SESSION_EXTENSIONS_LOADED, { detail: { sessionId } })
|
||||
);
|
||||
onSessionLoaded?.();
|
||||
return;
|
||||
}
|
||||
@@ -776,7 +778,9 @@ export function useChatStream({
|
||||
const extensionResults = resumeData?.extension_results;
|
||||
|
||||
showExtensionLoadResults(extensionResults);
|
||||
window.dispatchEvent(new CustomEvent(AppEvents.SESSION_EXTENSIONS_LOADED));
|
||||
window.dispatchEvent(
|
||||
new CustomEvent(AppEvents.SESSION_EXTENSIONS_LOADED, { detail: { sessionId } })
|
||||
);
|
||||
|
||||
const pendingRequestId = pendingReattachRequestIdRef.current;
|
||||
const reattachedToActiveRequest = activeRequestIdRef.current !== null;
|
||||
|
||||
Reference in New Issue
Block a user