switch gpt-5 to codex prompt

This commit is contained in:
Dax Raad
2025-08-10 20:47:11 -04:00
parent 3ab4f42ebb
commit 13d3fba86b
4 changed files with 15 additions and 12 deletions

View File

@@ -4,7 +4,8 @@ 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"
// Lazy import to avoid circular dependency with session/tool registry
// import { Server } from "../server/server"
import { BunProc } from "../bun"
export namespace Plugin {
@@ -13,7 +14,7 @@ export namespace Plugin {
const state = App.state("plugin", async (app) => {
const client = createOpencodeClient({
baseUrl: "http://localhost:4096",
fetch: async (...args) => Server.app().fetch(...args),
fetch: async (...args) => (await import("../server/server")).Server.app().fetch(...args),
})
const config = await Config.get()
const hooks = []