opencode
opencode copied to clipboard
bun dev: starts in packages/opencode directory
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.
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.
Those are unrelated.