Browse Source

tweak: ensure codex built in plugin is always available

Aiden Cline 1 month ago
parent
commit
0cc3c3bc78
1 changed files with 4 additions and 7 deletions
  1. 4 7
      packages/opencode/src/plugin/index.ts

+ 4 - 7
packages/opencode/src/plugin/index.ts

@@ -34,13 +34,10 @@ export namespace Plugin {
       $: Bun.$,
     }
 
-    // Load internal plugins first
-    if (!Flag.OPENCODE_DISABLE_DEFAULT_PLUGINS) {
-      for (const plugin of INTERNAL_PLUGINS) {
-        log.info("loading internal plugin", { name: plugin.name })
-        const init = await plugin(input)
-        hooks.push(init)
-      }
+    for (const plugin of INTERNAL_PLUGINS) {
+      log.info("loading internal plugin", { name: plugin.name })
+      const init = await plugin(input)
+      hooks.push(init)
     }
 
     const plugins = [...(config.plugin ?? [])]