diff options
| author | Dax Raad <[email protected]> | 2025-11-06 19:48:10 -0500 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-11-06 19:48:10 -0500 |
| commit | b25d4f9dfb217442637d63167e31cf29617476bf (patch) | |
| tree | a8158cc680374ce563fcf39ade7963a71a721eac /packages | |
| parent | d1962ca5a7e65c50235e9c389772331e7cd7a0fe (diff) | |
| download | opencode-b25d4f9dfb217442637d63167e31cf29617476bf.tar.gz opencode-b25d4f9dfb217442637d63167e31cf29617476bf.zip | |
fix issue with input randomly breaking
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui/thread.ts | 3 | ||||
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui/worker.ts | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/thread.ts b/packages/opencode/src/cli/cmd/tui/thread.ts index b05bb5829..c530c8884 100644 --- a/packages/opencode/src/cli/cmd/tui/thread.ts +++ b/packages/opencode/src/cli/cmd/tui/thread.ts @@ -2,7 +2,6 @@ import { cmd } from "@/cli/cmd/cmd" import { tui } from "./app" import { Rpc } from "@/util/rpc" import { type rpc } from "./worker" -import { upgrade } from "@/cli/upgrade" import { Session } from "@/session" import { bootstrap } from "@/cli/bootstrap" import path from "path" @@ -78,8 +77,6 @@ export const TuiThreadCommand = cmd({ } await bootstrap(cwd, async () => { - upgrade() - const sessionID = await (async () => { if (args.continue) { const it = Session.list() diff --git a/packages/opencode/src/cli/cmd/tui/worker.ts b/packages/opencode/src/cli/cmd/tui/worker.ts index d268449c1..32cd5562a 100644 --- a/packages/opencode/src/cli/cmd/tui/worker.ts +++ b/packages/opencode/src/cli/cmd/tui/worker.ts @@ -3,6 +3,7 @@ import { Server } from "@/server/server" import { Log } from "@/util/log" import { Instance } from "@/project/instance" import { Rpc } from "@/util/rpc" +import { upgrade } from "@/cli/upgrade" await Log.init({ print: process.argv.includes("--print-logs"), @@ -25,6 +26,8 @@ process.on("uncaughtException", (e) => { }) }) +upgrade() + let server: Bun.Server<undefined> export const rpc = { async server(input: { port: number; hostname: string }) { |
