diff options
| author | Aiden Cline <[email protected]> | 2025-10-31 17:57:56 -0500 |
|---|---|---|
| committer | Aiden Cline <[email protected]> | 2025-10-31 17:57:56 -0500 |
| commit | 20fc56d020a9880c4e013768477909eb6e788dc8 (patch) | |
| tree | 1e2869aa58a52e9fc2b112274479736d3544bef9 | |
| parent | a57ae3ec939d5dabdf86d4bcce56a3ae3962c00b (diff) | |
| download | opencode-20fc56d020a9880c4e013768477909eb6e788dc8.tar.gz opencode-20fc56d020a9880c4e013768477909eb6e788dc8.zip | |
Revert "opentui: fix: Make worker.ts path independent from cwd (#3600)"
This reverts commit d473d4ffc8d15e1b6cbb34f5171e6b600f8d3eaa.
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui/thread.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/thread.ts b/packages/opencode/src/cli/cmd/tui/thread.ts index 956ddfb1b..74afba05b 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.error const client = Rpc.client<typeof rpc>(worker) process.on("uncaughtException", (e) => { |
