core: fix plugin hooks to properly handle async operations ensuring plugins can execute async code without errors (#19586)

pull/19589/head
Aiden Cline 2026-03-28 22:15:41 -05:00 committed by GitHub
parent 72cb9dfa31
commit 55895d0663
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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
})