opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Ollama (qwen2.5-coder): tool calls (edit/write) show as executed but no files are created/modified

Open danielveraec opened this issue 1 week ago • 5 comments

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

  1. cd into a writable directory (verified with touch test.txt)
  2. Start OpenCode from that directory: opencode
  3. Ask OpenCode to create a file, for example: "Create a file named prueba.txt"
  4. Alternatively, run: /init
  5. OpenCode prints a tool call (edit / write), but no file is created on disk.

Screenshot and/or share link

Image

Operating System

macOS 26.2 (Tahoe)

Terminal

macOS Terminal (zsh)

danielveraec avatar Jan 06 '26 04:01 danielveraec