Просмотр исходного кода

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

Co-authored-by: cooooooooooode <[email protected]>
cooooooooooode 2 недель назад
Родитель
Сommit
53298145a2
1 измененных файлов с 1 добавлено и 0 удалено
  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),
     })