Преглед изворни кода

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

Haris Gušić пре 10 месеци
родитељ
комит
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.agent = mergeDeep(result.agent, await loadMode(dir))
       result.plugin.push(...(await loadPlugin(dir)))
       result.plugin.push(...(await loadPlugin(dir)))
     }
     }
-    await Promise.all(promises)
+    await Promise.allSettled(promises)
 
 
     // Migrate deprecated mode field to agent field
     // Migrate deprecated mode field to agent field
     for (const [name, mode] of Object.entries(result.mode)) {
     for (const [name, mode] of Object.entries(result.mode)) {