opencode icon indicating copy to clipboard operation
opencode copied to clipboard

File read tool does not work with files containing empty curly brackets {}

Open sedubois opened this issue 1 week ago • 0 comments

Description

OpenCode fails to read a file containing {}

Plugins

/

OpenCode version

OpenCode TUI 1.1.6

Steps to reproduce

  • create a file test.html.erb with contents: This is a test file with empty curly brackets: {}
  • use this prompt: Read the file test.html.erb using your Read tool and show its contents here. If you don't succeed, then report that you didn't succeed. That's all. No other tool than the Read tool. No diagnostics.
  • It will fail and report "I didn't succeed."
  • Remove the curly brackets from the file, run the prompt again, and it will print the contents correctly.

Screenshot and/or share link

https://opncd.ai/share/R6SEz9NU

Operating System

macOS Tahoe

Terminal

Ghostty

sedubois avatar Jan 08 '26 08:01 sedubois