summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorcooooooooooode <[email protected]>2026-02-07 00:15:35 +0800
committerGitHub <[email protected]>2026-02-06 10:15:35 -0600
commit53298145a2ca1da682dc09ddb7c12398510ccd3c (patch)
tree16f2c3af7b8f0c72f478133b6747ae0eb7202cc1 /packages
parent2c58dd6203df7806f57ef6b29672091cb764e871 (diff)
downloadopencode-53298145a2ca1da682dc09ddb7c12398510ccd3c.tar.gz
opencode-53298145a2ca1da682dc09ddb7c12398510ccd3c.zip
fix: add directory parameter to plugin client for multi-project support (#11344)
Co-authored-by: cooooooooooode <[email protected]>
Diffstat (limited to 'packages')
-rw-r--r--packages/opencode/src/plugin/index.ts1
1 files changed, 1 insertions, 0 deletions
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),
})