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

This commit is contained in:
Aiden Cline
2026-03-28 22:15:41 -05:00
committed by GitHub
parent 72cb9dfa31
commit 55895d0663
+1 -1
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
})