summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2026-03-28 22:15:41 -0500
committerGitHub <[email protected]>2026-03-29 03:15:41 +0000
commit55895d0663671759161092adef463414ec98237c (patch)
treec0e28ebf3cec243dff4bc94139e6c4234cf1da36
parent72cb9dfa315c146f21366a0d313435ac35e60d0f (diff)
downloadopencode-55895d0663671759161092adef463414ec98237c.tar.gz
opencode-55895d0663671759161092adef463414ec98237c.zip
core: fix plugin hooks to properly handle async operations ensuring plugins can execute async code without errors (#19586)
-rw-r--r--packages/opencode/src/plugin/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/src/plugin/index.ts b/packages/opencode/src/plugin/index.ts
index 9698487f9..a945b4b98 100644
--- a/packages/opencode/src/plugin/index.ts
+++ b/packages/opencode/src/plugin/index.ts
@@ -292,7 +292,7 @@ export namespace Plugin {
for (const hook of state.hooks) {
const fn = hook[name] as any
if (!fn) continue
- yield* Effect.promise(() => fn(input, output))
+ yield* Effect.promise(async () => fn(input, output))
}
return output
})