mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix issue with input randomly breaking
This commit is contained in:
parent
d1962ca5a7
commit
b25d4f9dfb
2 changed files with 3 additions and 3 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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 }) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue