[PR #3778] fix(tui): worker path resolution in dev mode #10758

Closed
opened 2026-02-16 18:15:30 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/3778

State: closed
Merged: Yes


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,
}

This commit fixes this by using relative path resolution.

Fixes: #3777

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/3778 **State:** closed **Merged:** Yes --- 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, } ``` This commit fixes this by using relative path resolution. Fixes: #3777
yindo added the pull-request label 2026-02-16 18:15:30 -05:00
yindo closed this issue 2026-02-16 18:15:30 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10758