Description
I have encounter a few issues when opencode delegates and uses the tools I guess, and the result says that it wrote files but actually it didnt. Here's an example:
A: Now let me apply both edits.
Tool Use: mcp_edit({"filePath":"/path/to/file","oldString":"<redacted>","newString":"<redacted>"})
Tool Use: mcp_edit({"filePath":"/path/to/other/file","oldString":"<redacted>","newString":"<redacted>"})
H: Tool Result for toolu_01CX5nnnVVZLpTi3ENWWsLVu: Edit applied successfully.
Tool Result for toolu_01CPgBDWWaBvLcKmXyiQWEz4: Edit applied successfully.
Only to notice that the two files were not edited at all. Sometimes though opencode writes the files fine without the mcp_edit or mcp_write.
Steps to reproduce
- Start
opencode
- Prompt to edit files
- Try until
opencode delegates to mcp_tool
- Check the result
Operating system
macOS
Plugin version
1.3.1
OpenCode version
1.2.27
Debug logs
Description
I have encounter a few issues when opencode delegates and uses the tools I guess, and the result says that it wrote files but actually it didnt. Here's an example:
Only to notice that the two files were not edited at all. Sometimes though
opencodewrites the files fine without themcp_editormcp_write.Steps to reproduce
opencodeopencodedelegates tomcp_toolOperating system
macOS
Plugin version
1.3.1
OpenCode version
1.2.27
Debug logs