Просмотр исходного кода

Revert "opentui: fix: Make worker.ts path independent from cwd (#3600)"

This reverts commit d473d4ffc8d15e1b6cbb34f5171e6b600f8d3eaa.
Aiden Cline 3 месяцев назад
Родитель
Сommit
20fc56d020
1 измененных файлов с 1 добавлено и 4 удалено
  1. 1 4
      packages/opencode/src/cli/cmd/tui/thread.ts

+ 1 - 4
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) => {