diff options
| author | Dax Raad <[email protected]> | 2025-06-02 11:40:28 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-06-02 11:40:28 -0400 |
| commit | 80de5d489f460df491f51f881061729220df47ce (patch) | |
| tree | 3cba5bee25869aa8f8d04651a78b814e70d7e442 | |
| parent | ab17578516a206ac05ccae52d6d1fbcae9c6142d (diff) | |
| download | opencode-80de5d489f460df491f51f881061729220df47ce.tar.gz opencode-80de5d489f460df491f51f881061729220df47ce.zip | |
spawn from anywhere in dev mode
| -rw-r--r-- | packages/opencode/src/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/src/index.ts b/packages/opencode/src/index.ts index 80bf4e00d..75c91f4d9 100644 --- a/packages/opencode/src/index.ts +++ b/packages/opencode/src/index.ts @@ -24,7 +24,7 @@ cli.command("", "Start the opencode in interactive mode").action(async () => { const server = Server.listen() let cmd = ["go", "run", "./main.go"] - let cwd = "../tui" + let cwd = new URL("../../tui", import.meta.url).pathname if (Bun.embeddedFiles.length > 0) { const blob = Bun.embeddedFiles[0] as File const binary = path.join(Global.cache(), "tui", blob.name) |
