From 7950c93f066381853b3308f05903d8f0f6263720 Mon Sep 17 00:00:00 2001 From: Nathan Flurry Date: Tue, 27 Jan 2026 20:14:35 -0800 Subject: [PATCH] fix: stop SSE/polling streams when switching sessions --- frontend/packages/inspector/src/App.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/packages/inspector/src/App.tsx b/frontend/packages/inspector/src/App.tsx index 29d8b41..316b229 100644 --- a/frontend/packages/inspector/src/App.tsx +++ b/frontend/packages/inspector/src/App.tsx @@ -314,6 +314,8 @@ export default function App() { }; const selectSession = (session: SessionInfo) => { + stopPolling(); + stopSse(); stopTurnStream(); setSessionId(session.sessionId); setAgentId(session.agent); @@ -328,6 +330,8 @@ export default function App() { }; const createNewSession = async (nextAgentId?: string) => { + stopPolling(); + stopSse(); stopTurnStream(); const selectedAgent = nextAgentId ?? agentId; if (nextAgentId) {