Revert "feat(desktop): terminal pane (#5081)"

This reverts commit d763c11a6d.
This commit is contained in:
Aiden Cline
2025-12-04 15:57:01 -06:00
parent d763c11a6d
commit f9dcd97936
27 changed files with 399 additions and 2296 deletions

View File

@@ -5,7 +5,6 @@ import { Instance } from "@/project/instance"
import { InstanceBootstrap } from "@/project/bootstrap"
import { Rpc } from "@/util/rpc"
import { upgrade } from "@/cli/upgrade"
import type { BunWebSocketData } from "hono/bun"
await Log.init({
print: process.argv.includes("--print-logs"),
@@ -28,7 +27,7 @@ process.on("uncaughtException", (e) => {
})
})
let server: Bun.Server<BunWebSocketData>
let server: Bun.Server<undefined>
export const rpc = {
async server(input: { port: number; hostname: string }) {
if (server) await server.stop(true)
@@ -54,9 +53,7 @@ export const rpc = {
async shutdown() {
Log.Default.info("worker shutting down")
await Instance.disposeAll()
// TODO: this should be awaited, but ws connections are
// causing this to hang, need to revisit this
server.stop(true)
await server.stop(true)
},
}