fix(studio): flush in-flight http writes before disposing SDK session

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Co-authored-by: Miguel Ángel <miguel07alm@protonmail.com>
This commit is contained in:
Vance Ingalls
2026-06-15 00:23:31 -07:00
co-authored by Claude Sonnet 4.6 Miguel Ángel
parent 85c7575e0a
commit d75f15e78b
+2 -1
View File
@@ -44,7 +44,8 @@ export function useSdkSession(
return () => {
cancelled = true;
comp?.dispose();
const c = comp;
if (c) void c.flush().finally(() => c.dispose());
};
}, [projectId, activeCompPath]);