From 53298145a2ca1da682dc09ddb7c12398510ccd3c Mon Sep 17 00:00:00 2001 From: cooooooooooode Date: Sat, 7 Feb 2026 00:15:35 +0800 Subject: [PATCH] fix: add directory parameter to plugin client for multi-project support (#11344) Co-authored-by: cooooooooooode <187372691+cooooooooooode@users.noreply.github.com> --- packages/opencode/src/plugin/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/opencode/src/plugin/index.ts b/packages/opencode/src/plugin/index.ts index fe8a90513..24dc695d6 100644 --- a/packages/opencode/src/plugin/index.ts +++ b/packages/opencode/src/plugin/index.ts @@ -24,6 +24,7 @@ export namespace Plugin { const state = Instance.state(async () => { const client = createOpencodeClient({ baseUrl: "http://localhost:4096", + directory: Instance.directory, // @ts-ignore - fetch type incompatibility fetch: async (...args) => Server.App().fetch(...args), })