mirror of
https://github.com/aljazceru/opencode.git
synced 2026-01-29 04:35:06 +01:00
Revert "opentui: fix: Make worker.ts path independent from cwd (#3600)"
This reverts commit d473d4ffc8.
This commit is contained in:
@@ -6,7 +6,6 @@ import { upgrade } from "@/cli/upgrade"
|
|||||||
import { Session } from "@/session"
|
import { Session } from "@/session"
|
||||||
import { bootstrap } from "@/cli/bootstrap"
|
import { bootstrap } from "@/cli/bootstrap"
|
||||||
import path from "path"
|
import path from "path"
|
||||||
import { fileURLToPath } from "url"
|
|
||||||
import { UI } from "@/cli/ui"
|
import { UI } from "@/cli/ui"
|
||||||
|
|
||||||
export const TuiThreadCommand = cmd({
|
export const TuiThreadCommand = cmd({
|
||||||
@@ -78,9 +77,7 @@ export const TuiThreadCommand = cmd({
|
|||||||
return undefined
|
return undefined
|
||||||
})()
|
})()
|
||||||
|
|
||||||
const worker = new Worker(
|
const worker = new Worker("./src/cli/cmd/tui/worker.ts")
|
||||||
path.join(path.dirname(fileURLToPath(import.meta.url)), "worker.ts"),
|
|
||||||
)
|
|
||||||
worker.onerror = console.error
|
worker.onerror = console.error
|
||||||
const client = Rpc.client<typeof rpc>(worker)
|
const client = Rpc.client<typeof rpc>(worker)
|
||||||
process.on("uncaughtException", (e) => {
|
process.on("uncaughtException", (e) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user