From a9f229d2221f34b2d2a19cee2ca245250f3a1f1f Mon Sep 17 00:00:00 2001 From: wuyang6 Date: Wed, 13 May 2026 16:21:55 +0800 Subject: [PATCH] Fix Jupyter status hook typing --- frontend/app/components/assistant-ui/thread.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/app/components/assistant-ui/thread.tsx b/frontend/app/components/assistant-ui/thread.tsx index 47511c2..32ba6db 100644 --- a/frontend/app/components/assistant-ui/thread.tsx +++ b/frontend/app/components/assistant-ui/thread.tsx @@ -384,12 +384,13 @@ function useJupyterWorkspaceStatus(sessionId: string | null) { setStatus(null); return; } + const sessionIdForRequest = sessionId; let cancelled = false; async function refresh() { try { const response = await fetch( - `/api/claw/jupyter?session_id=${encodeURIComponent(sessionId)}`, + `/api/claw/jupyter?session_id=${encodeURIComponent(sessionIdForRequest)}`, { cache: "no-store" }, ); const payload = (await response.json().catch(() => ({}))) as