Use relative path w.r.t cwd for Context.format
#270
Answered by
nickjvandyke
May 22, 2026
Replies: 1 comment 8 replies
opencode.nvim uses the TUI endpoints to leverage opencode's existing UI functionality, and those only support text 🙁 Even the message endpoints don't support explicit file refs. So we are at the mercy of the LLM interpreting the filepaths. How many models have this issue? I haven't seen it but it seems like a pretty important issue on their end. Regardless, I have been curious to write the path relative to the server's CWD for conciseness, now that we have that easily available at runtime. Just can't re-use |
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Created #272 for visibility 🙂