opencode
opencode copied to clipboard
File read tool does not work with files containing empty curly brackets {}
Description
OpenCode fails to read a file containing {}
Plugins
/
OpenCode version
OpenCode TUI 1.1.6
Steps to reproduce
- create a file
test.html.erbwith 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