diff options
| author | Aiden Cline <[email protected]> | 2026-03-28 22:15:41 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-03-29 03:15:41 +0000 |
| commit | 55895d0663671759161092adef463414ec98237c (patch) | |
| tree | c0e28ebf3cec243dff4bc94139e6c4234cf1da36 | |
| parent | 72cb9dfa315c146f21366a0d313435ac35e60d0f (diff) | |
| download | opencode-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.ts | 2 |
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 }) |
