From d686269377c19cefaa9b5958b148fdad1f62f3d1 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Thu, 21 Aug 2025 11:24:48 -0400 Subject: [PATCH] await config hooks --- packages/opencode/src/plugin/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opencode/src/plugin/index.ts b/packages/opencode/src/plugin/index.ts index c862e332..c3ef06b6 100644 --- a/packages/opencode/src/plugin/index.ts +++ b/packages/opencode/src/plugin/index.ts @@ -72,7 +72,7 @@ export namespace Plugin { const hooks = await state().then((x) => x.hooks) const config = await Config.get() for (const hook of hooks) { - hook.config?.(config) + await hook.config?.(config) } Bus.subscribeAll(async (input) => { const hooks = await state().then((x) => x.hooks)