bun dev: starts in packages/opencode directory #2596

Open
opened 2026-02-16 17:36:22 -05:00 by yindo · 2 comments
Owner

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

Originally assigned to: @thdxr on GitHub.

I think this is another unintentional change with opentui similar to #3777

Before "bun dev" would start with the project dir set to ./ but now it's ./packages/opencode

This can cause some confusion as there is an AGENTS.md in the repo root which should be used.

By the way, I propose changing the working dir to a flag: --dir - see: https://github.com/paralin/opencode/commit/a26a3af90705d5e13e41e402efabe79e4a8db3d2 if anyone has thoughts on this.

Originally created by @paralin on GitHub (Nov 4, 2025). Originally assigned to: @thdxr on GitHub. I think this is another unintentional change with opentui similar to #3777 Before "bun dev" would start with the project dir set to ./ but now it's ./packages/opencode This can cause some confusion as there is an AGENTS.md in the repo root which should be used. By the way, I propose changing the working dir to a flag: `--dir` - see: https://github.com/paralin/opencode/commit/a26a3af90705d5e13e41e402efabe79e4a8db3d2 if anyone has thoughts on this.
yindo added the opentui label 2026-02-16 17:36:22 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 4, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #3777: bun dev with different project dir fails - Similar issue where bun dev command changed behavior and now fails with different project directories
  • #3220: Unable to run opencode from source outside of packages/opencode directory on opentui branch - Directly related issue about the same problem where relative paths assume execution from packages/opencode directory
  • #3391: Wrong working directory - Related issue about working directory problems

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Nov 4, 2025): This issue might be a duplicate of existing issues. Please check: - #3777: bun dev with different project dir fails - Similar issue where bun dev command changed behavior and now fails with different project directories - #3220: Unable to run opencode from source outside of packages/opencode directory on opentui branch - Directly related issue about the same problem where relative paths assume execution from packages/opencode directory - #3391: Wrong working directory - Related issue about working directory problems Feel free to ignore if none of these address your specific case.
Author
Owner

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

Those are unrelated.

@paralin commented on GitHub (Nov 4, 2025): Those are unrelated.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2596