Ollama (qwen2.5-coder): tool calls (edit/write) show as executed but no files are created/modified
Description
When using OpenCode with Ollama + qwen2.5-coder, tool calls such as edit / write appear to execute (the JSON tool payload is printed in the output), but no files are actually created or modified on disk.
This affects both /init (which does not create AGENTS.md) and any manual request to create or edit files. Manual file creation using the shell works, confirming the directory is writable. The issue reproduces consistently across sessions and directories.
It appears that tool calls are generated by the model, but are not applied to the filesystem.
Plugins
No response
OpenCode version
1.1.3
Steps to reproduce
-
cdinto a writable directory (verified withtouch test.txt) - Start OpenCode from that directory:
opencode - Ask OpenCode to create a file, for example:
"Create a file named
prueba.txt" - Alternatively, run:
/init - OpenCode prints a tool call (
edit/write), but no file is created on disk.
Screenshot and/or share link
Operating System
macOS 26.2 (Tahoe)
Terminal
macOS Terminal (zsh)
This issue might be a duplicate of existing issues. Please check:
- #6918: qwen3-coder fails to call edit tool - Similar tool call failures with Qwen models
- #7002: Regression in 1.1.3 - Also in v1.1.3 with tool execution errors where tools are called but parameters are invalid/undefined
- #6838: Tool.edit should receive json object - Related to tool parameter handling issues
Feel free to ignore if none of these address your specific case.
Is this w/ ollama?
Is this w/ ollama?
Yes. This is using Ollama (local) with qwen2.5-coder via the OpenAI-compatible endpoint (http://127.0.0.1:11434/v1). The issue reproduces consistently when using Ollama as the provider.
Did u set num_ctx (see docs)
Ill try to do a pass on ollama soon but rn u need to configure that cause ollama by default has such a low context limit that agentic stuff will hardly work
Same problem. Increasing the context size in the Ollama settings appears to solve the issue:
UPD. Sorry for misleading. Worked once, but can't make it to work since