opencode icon indicating copy to clipboard operation
opencode copied to clipboard

bun dev: starts in packages/opencode directory

Open paralin opened this issue 3 weeks ago • 2 comments

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.

paralin avatar Nov 04 '25 23:11 paralin

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] avatar Nov 04 '25 23:11 github-actions[bot]

Those are unrelated.

paralin avatar Nov 04 '25 23:11 paralin