mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-19 16:40:48 +00:00
core: fix plugin hooks to properly handle async operations ensuring plugins can execute async code without errors (#19586)
This commit is contained in:
parent
72cb9dfa31
commit
55895d0663
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue