Bläddra i källkod

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

Haris Gušić 3 månader sedan
förälder
incheckning
4355027408
1 ändrade filer med 1 tillägg och 1 borttagningar
  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)) {