refactor(cli): centralize server resolution

This commit is contained in:
Dax Raad
2026-07-08 22:09:59 -04:00
parent be7a684791
commit cccd013801
13 changed files with 152 additions and 292 deletions
+1
View File
@@ -159,6 +159,7 @@ export const TuiThreadCommand = cmd({
const { createLegacyTuiPluginHost } = await import("@/plugin/tui/runtime")
await Effect.runPromise(
run({
// @ts-expect-error V1 does not consume the V2-only server input.
client: createOpencodeClient({ baseUrl: url, headers, directory: cwd }),
api: OpenCode.make({ baseUrl: url, headers }),
async onSnapshot() {