[PR #2488] fix: use util.RootPath instead of util.CwdPath #10327

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

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

State: closed
Merged: No


When we launch opencode via bun dev /path/to/prj, opencode would no longer correctly resolve paths in chat messages via @path/to/local/file.ts. It would use the path where bun is run as the basedir and not path/to/prj, resulting in a bunch of error 400.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/2488 **State:** closed **Merged:** No --- When we launch opencode via `bun dev /path/to/prj`, opencode would no longer correctly resolve paths in chat messages via `@path/to/local/file.ts`. It would use the path where `bun` is run as the basedir and not `path/to/prj`, resulting in a bunch of error 400.
yindo added the pull-request label 2026-02-16 18:14:57 -05:00
yindo closed this issue 2026-02-16 18:14:57 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10327