Skip to content

Opencode Desktop Write Tool Not Persisting Files #15325

@jrobson-objective

Description

@jrobson-objective

Description

Critical Bug Report:
Bug Summary
The Write tool reports success but files are not actually written to disk. This causes complete loss of work when sessions end or hit context limits.

Evidence
This session: Used Write tool 13 times - all reported "Wrote file successfully"
Verification: Only 2 files exist on disk (both created with bash heredoc, not Write tool)
Previous session: Same issue - extensive work reported as complete, but all files disappeared

Impact
Severe: Complete loss of development work
Users cannot trust Write tool output
Makes agent appear unreliable
Forces use of bash heredoc workarounds

Plugins

@tarquinen/opencode-dcp@latest

OpenCode version

1.2.15

Steps to reproduce

  1. Use Write tool to create any file
  2. Tool reports: "Wrote file successfully"
  3. Check filesystem: file doesn't exist
  4. Use bash heredoc to create same file: works correctly

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

OpenCode Desktop

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates to opencode on web / desktopwindows

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions