From 66239b15432b22f804832bdf12369897750b23fa Mon Sep 17 00:00:00 2001 From: Tony Hu Date: Thu, 18 Sep 2025 09:09:09 +0800 Subject: [PATCH] fix(web-llm): fix infinite loading when local model cache is invalid --- utils/rpc/background-fns.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/rpc/background-fns.ts b/utils/rpc/background-fns.ts index aeaac800..25ebabc4 100644 --- a/utils/rpc/background-fns.ts +++ b/utils/rpc/background-fns.ts @@ -565,6 +565,7 @@ function initWebLLMEngine(model: WebLLMSupportedModel) { }, }) port.postMessage({ type: 'ready' }) + port.disconnect() }) return { portName } }