bun dev with different project dir fails #2500

Closed
opened 2026-02-16 17:35:58 -05:00 by yindo · 1 comment
Owner

Originally created by @paralin on GitHub (Nov 2, 2025).

Description

After updating to the latest "dev" branch (which I think is opentui now) - commit 10523c4372

Previous versions allowed:

bun install
bun dev ../path/to/my/project

But now I get:

% bun dev ../path/to/my/project
$ bun run --cwd packages/opencode --conditions=browser src/index.ts ../path/to/my/project
Error: Failed to change directory to /Users/cjs/repos/opencode/packages/path/to/my/project

If I try to add more ../ I get:

% bun dev ../../../path/to/my/project
$ bun run --cwd packages/opencode --conditions=browser src/index.ts ../../../path/to/my/project
ErrorEvent {
  type: "error",
  message: "BuildMessage: ModuleNotFound resolving \"./src/cli/cmd/tui/worker.ts\" (entry point)",
  error: null,
}

How can I run it in dev mode with a separate path now?

Originally created by @paralin on GitHub (Nov 2, 2025). ### Description After updating to the latest "dev" branch (which I think is opentui now) - commit 10523c43723a6c6d1f352d707a1b389317733af3 Previous versions allowed: ``` bun install bun dev ../path/to/my/project ``` But now I get: ``` % bun dev ../path/to/my/project $ bun run --cwd packages/opencode --conditions=browser src/index.ts ../path/to/my/project Error: Failed to change directory to /Users/cjs/repos/opencode/packages/path/to/my/project ``` If I try to add more ../ I get: ``` % bun dev ../../../path/to/my/project $ bun run --cwd packages/opencode --conditions=browser src/index.ts ../../../path/to/my/project ErrorEvent { type: "error", message: "BuildMessage: ModuleNotFound resolving \"./src/cli/cmd/tui/worker.ts\" (entry point)", error: null, } ``` How can I run it in dev mode with a separate path now?
yindo added the opentuibug labels 2026-02-16 17:35:58 -05:00
yindo closed this issue 2026-02-16 17:35:58 -05:00
Author
Owner

@paralin commented on GitHub (Nov 2, 2025):

This is a quick and dirty fix which works for me but may not be the "correct" way to fix this.

https://github.com/sst/opencode/pull/3778

@paralin commented on GitHub (Nov 2, 2025): This is a quick and dirty fix which works for me but may not be the "correct" way to fix this. https://github.com/sst/opencode/pull/3778
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2500