瀏覽代碼

fix issue with conversations hanging

Dax Raad 8 月之前
父節點
當前提交
b72e17a8b7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/opencode/src/session/system.ts

+ 1 - 1
packages/opencode/src/session/system.ts

@@ -114,7 +114,7 @@ export namespace SystemPrompt {
         .text()
         .catch(() => ""),
     )
-    return Promise.all(found).then(Boolean)
+    return Promise.all(found).then((result) => result.filter(Boolean))
   }
 
   export function summarize(providerID: string) {