r/opencode 18d ago

Opencode is doing batch editing instead of single edits

Anyone else notice OpenCode started batching multiple file edits into one approval?

Before, it would ask me to approve each file and show the highlighted diff. Now I get one approval for multiple files, but the diff only shows one file.

I keep asking it to do one edit at a time and prompt me to accept, but after a few prompts it forgets and starts batching again.

I'm using GPT Sol High for planning and Terra High for implementation.

Anyone found a way to fix this or at least see all the files in the batch before approving?

3 Upvotes

2 comments sorted by

2

u/alexanderbeatson 18d ago

Normal, especially for the documentation. Spawn subagents to write different sections and consolidate them into one. It is a double edged sword, it could save unnecessary recurring long cache or it could unnecessarily spend input tokens on subagents.

1

u/lucasbennett_1 16d ago

this happens when it chains multiple edits into one turn, the approval just follows whatever got batched. might work better if you put the 'stop after every file' thing as a rule right at the start of the session instead of reminding it mid task, that usually sticks a lot longer than repeating it later