From 2cb87538c443189db3028286e014a6a9f335826e Mon Sep 17 00:00:00 2001 From: Harivansh Rathi Date: Fri, 6 Mar 2026 10:13:13 -0800 Subject: [PATCH] fix --- packages/coding-agent/src/core/gateway-runtime.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/coding-agent/src/core/gateway-runtime.ts b/packages/coding-agent/src/core/gateway-runtime.ts index f3c03e54..cc5149a0 100644 --- a/packages/coding-agent/src/core/gateway-runtime.ts +++ b/packages/coding-agent/src/core/gateway-runtime.ts @@ -627,7 +627,6 @@ export class GatewayRuntime { }); response.write("\n"); - const managedSession = await this.ensureSession(sessionKey); const listener = createVercelStreamListener(response); let unsubscribe: (() => void) | undefined; let streamingActive = false; @@ -648,6 +647,7 @@ export class GatewayRuntime { // Drive the session through the existing queue infrastructure try { + const managedSession = await this.ensureSession(sessionKey); const result = await this.enqueueManagedMessage({ request: { sessionKey,