fix(cli): load v2 tui config (#36466)
Co-authored-by: Dax Raad <d@ironbay.co>
This commit is contained in:
parent
ec07ee56f4
commit
8f904c8e9a
3 changed files with 51 additions and 2 deletions
|
|
@ -2,9 +2,9 @@ import { AppNodeBuilder } from "@opencode-ai/core/effect/app-node-builder"
|
|||
import { Global } from "@opencode-ai/core/global"
|
||||
import { run } from "@opencode-ai/tui"
|
||||
import { loadBuiltinPlugins } from "@opencode-ai/tui/builtins"
|
||||
import { TuiConfig } from "@opencode-ai/tui/config"
|
||||
import { Commands } from "../commands"
|
||||
import { Runtime } from "../../framework/runtime"
|
||||
import { TuiConfig } from "../../tui-config"
|
||||
import { Effect, Option } from "effect"
|
||||
import { Server } from "../../services/server"
|
||||
import { Updater } from "../../services/updater"
|
||||
|
|
@ -34,7 +34,7 @@ export default Runtime.handler(Commands, (input) =>
|
|||
),
|
||||
)
|
||||
yield* Effect.promise(() => preflight.finish())
|
||||
const config = TuiConfig.resolve({}, { terminalSuspend: false })
|
||||
const config = yield* TuiConfig.load()
|
||||
let disposeSlots: (() => void) | undefined
|
||||
const runFork = Effect.runForkWith(yield* Effect.context())
|
||||
yield* run({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue