Просмотр исходного кода

fix: Missing @opencode-ai/plugin causes crash (#3615)

Haris Gušić 3 месяцев назад
Родитель
Сommit
4355027408
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/opencode/src/config/config.ts

+ 1 - 1
packages/opencode/src/config/config.ts

@@ -86,7 +86,7 @@ export namespace Config {
       result.agent = mergeDeep(result.agent, await loadMode(dir))
       result.plugin.push(...(await loadPlugin(dir)))
     }
-    await Promise.all(promises)
+    await Promise.allSettled(promises)
 
     // Migrate deprecated mode field to agent field
     for (const [name, mode] of Object.entries(result.mode)) {