The open source coding agent.
TypeScript
fix: add directory parameter to plugin client for multi-project support (#11344)
cooooooooooode53298145a2ca
diff --git a/packages/opencode/src/plugin/index.ts b/packages/opencode/src/plugin/index.tsindex fe8a9051371..24dc695d635 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 incompatibilityfetch: async (...args) => Server.App().fetch(...args),})