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

Co-authored-by: cooooooooooode <187372691+cooooooooooode@users.noreply.github.com>
This commit is contained in:
cooooooooooode
2026-02-07 00:15:35 +08:00
committed by GitHub
parent 2c58dd6203
commit 53298145a2

View File

@@ -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),
})