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:
Lifei Zhou
2026-06-04 01:14:30 +10:00
committed by GitHub
parent 30034b9b32
commit f6caaa03b5
2 changed files with 87 additions and 45 deletions
+6 -2
View File
@@ -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;