Skip to content

Commit 55895d0

Browse files
authored
core: fix plugin hooks to properly handle async operations ensuring plugins can execute async code without errors (anomalyco#19586)
1 parent 72cb9df commit 55895d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/opencode/src/plugin/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ export namespace Plugin {
292292
for (const hook of state.hooks) {
293293
const fn = hook[name] as any
294294
if (!fn) continue
295-
yield* Effect.promise(() => fn(input, output))
295+
yield* Effect.promise(async () => fn(input, output))
296296
}
297297
return output
298298
})

0 commit comments

Comments
 (0)