Replies: 1 comment 2 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 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For some models, I got the following error because the model attempts to concatenate the absolute path with the cwd of the opencode:
I'm proposing to use relative path in conjuction with the native opencode file annotation:
@<relative path>. So in above screenshot, it would be translated to@lua/klungs/plugins/opencode.luasince my cwd is~/dotfiles/nvim.EDIT: After a little bit of testing, it's not enough to just send
@<relative path>in the prompt. We also need to specify file/directory attachments. I will investigate the opencode API later.Beta Was this translation helpful? Give feedback.
All reactions