summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-06-02 11:40:28 -0400
committerDax Raad <[email protected]>2025-06-02 11:40:28 -0400
commit80de5d489f460df491f51f881061729220df47ce (patch)
tree3cba5bee25869aa8f8d04651a78b814e70d7e442
parentab17578516a206ac05ccae52d6d1fbcae9c6142d (diff)
downloadopencode-80de5d489f460df491f51f881061729220df47ce.tar.gz
opencode-80de5d489f460df491f51f881061729220df47ce.zip
spawn from anywhere in dev mode
-rw-r--r--packages/opencode/src/index.ts2
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)