From 7a05eaa15ccdb03e63d751df1c4899301d286aa2 Mon Sep 17 00:00:00 2001 From: James Long Date: Mon, 23 Mar 2026 22:51:26 -0400 Subject: [PATCH] Add back fix for circular dep to fix tests --- packages/opencode/src/plugin/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/opencode/src/plugin/index.ts b/packages/opencode/src/plugin/index.ts index 57dcff8f67..9e00802f98 100644 --- a/packages/opencode/src/plugin/index.ts +++ b/packages/opencode/src/plugin/index.ts @@ -3,7 +3,6 @@ import { Config } from "../config/config" import { Bus } from "../bus" import { Log } from "../util/log" import { createOpencodeClient } from "@opencode-ai/sdk" -import { Server } from "../server/server" import { BunProc } from "../bun" import { Flag } from "../flag/flag" import { CodexAuthPlugin } from "./codex" @@ -57,6 +56,8 @@ export namespace Plugin { const hooks: Hooks[] = [] yield* Effect.promise(async () => { + const { Server } = await import("../server/server") + const client = createOpencodeClient({ baseUrl: "http://localhost:4096", directory: ctx.directory,