Description
It looks like whenever the agent uses the edit tool, it replaces all tab indentation with two tabs. I was able to reproduce this with a simple one-line edit. The diff showed the correct edit but all tabs in the file had been replaced with two tabs.
Plugins
no
OpenCode version
1.2.10
Steps to reproduce
- Have a file that uses single-tab indentation
- Ask agent to edit the file — any edit will do
- The diff will show the correct edit but the file will actually have had all
\t replaced with \t\t.
I was editing a Ruby file with ruby-lap enabled.
Screenshot and/or share link
No response
Operating System
macOS
Terminal
Zed
Description
It looks like whenever the agent uses the edit tool, it replaces all tab indentation with two tabs. I was able to reproduce this with a simple one-line edit. The diff showed the correct edit but all tabs in the file had been replaced with two tabs.
Plugins
no
OpenCode version
1.2.10
Steps to reproduce
\treplaced with\t\t.I was editing a Ruby file with
ruby-lapenabled.Screenshot and/or share link
No response
Operating System
macOS
Terminal
Zed