Explorar o código

fix: add directory parameter to plugin client for multi-project support (#11344)

Co-authored-by: cooooooooooode <[email protected]>
cooooooooooode hai 2 semanas
pai
achega
53298145a2
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      packages/opencode/src/plugin/index.ts

+ 1 - 0
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),
     })