[PR #13781] fix(tui): make use of server dir path for file references in prompts #14808

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

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

State: closed
Merged: Yes


What does this PR do?

This PR fixes #13732

It lets the TUI pass correct file references using the dir of the attached remote instance rather than just the current process.cwd

How did you verify your code works?

Ran a remote server using https://gitterm.dev and attached to it on my local and was able to properly reference files for the model.

Also ran tests on a normal Opencode instance to make sure this update doesnt cause a regression in normal instances

Screenshot 2026-02-16 at 01 58 07
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13781 **State:** closed **Merged:** Yes --- ### What does this PR do? This PR fixes #13732 It lets the TUI pass correct file references using the dir of the attached remote instance rather than just the current `process.cwd` ### How did you verify your code works? Ran a remote server using https://gitterm.dev and attached to it on my local and was able to properly reference files for the model. Also ran tests on a normal Opencode instance to make sure this update doesnt cause a regression in normal instances <img width="1128" height="733" alt="Screenshot 2026-02-16 at 01 58 07" src="https://github.com/user-attachments/assets/6f1607d6-da38-477e-9eef-c952cd849afb" />
yindo added the pull-request label 2026-02-16 18:19:33 -05:00
yindo closed this issue 2026-02-16 18:19:33 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14808