The open source coding agent.
TypeScript
Revert "opentui: fix: Make worker.ts path independent from cwd (#3600)"
Aiden Cline20fc56d020a9
diff --git a/packages/opencode/src/cli/cmd/tui/thread.ts b/packages/opencode/src/cli/cmd/tui/thread.tsindex 956ddfb1b43..74afba05bf4 100644--- a/packages/opencode/src/cli/cmd/tui/thread.ts+++ b/packages/opencode/src/cli/cmd/tui/thread.ts@@ -6,7 +6,6 @@ import { upgrade } from "@/cli/upgrade"import { Session } from "@/session"import { bootstrap } from "@/cli/bootstrap"import path from "path"-import { fileURLToPath } from "url"import { UI } from "@/cli/ui"export const TuiThreadCommand = cmd({@@ -78,9 +77,7 @@ export const TuiThreadCommand = cmd({return undefined})()- const worker = new Worker(- path.join(path.dirname(fileURLToPath(import.meta.url)), "worker.ts"),- )+ const worker = new Worker("./src/cli/cmd/tui/worker.ts")worker.onerror = console.errorconst client = Rpc.client<typeof rpc>(worker)process.on("uncaughtException", (e) => {