diff --git a/src/components/shell/hooks/useShellRuntime.ts b/src/components/shell/hooks/useShellRuntime.ts index 7334329..0af6d2f 100644 --- a/src/components/shell/hooks/useShellRuntime.ts +++ b/src/components/shell/hooks/useShellRuntime.ts @@ -140,11 +140,7 @@ export function useShellRuntime({ useEffect(() => { const currentSessionId = selectedSession?.id ?? null; - if ( - lastSessionIdRef.current !== null && - lastSessionIdRef.current !== currentSessionId && - isInitialized - ) { + if (lastSessionIdRef.current !== currentSessionId && isInitialized) { disconnectFromShell(); }