From 5b28cfbbe9fd5d7f0a35b7733902d1c2a50e3d78 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 01:40:18 +0000 Subject: [PATCH] Reset active client reference during runtime shutdown Co-authored-by: Theo Browne --- apps/t3/src/runtimeApiServer.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/t3/src/runtimeApiServer.ts b/apps/t3/src/runtimeApiServer.ts index bafb80d1d0..85918351d8 100644 --- a/apps/t3/src/runtimeApiServer.ts +++ b/apps/t3/src/runtimeApiServer.ts @@ -767,6 +767,7 @@ export async function startRuntimeApiServer( processManager.killAll(); providerManager.stopAll(); providerManager.dispose(); + activeClient = null; for (const client of wss.clients) { client.terminate(); }