Constant failures to use the Write / Edit tools
I've been using opencode since around v0.3.40 or thereabouts. I keep hoping for this infuriating issue to go away but it just keeps happening.
Most of the time, when opencode tries to write / edit a file, I'm getting these errors as if the models are just incapable of producing output compatible with the expected payload.
I'm using GPT-4.1 mini most of the time but I've tried many other OpenAI models and they all do the same.
gpt4.1 works the best - not mini
@thdxr I don't think this is a model issue. I just tried with Codex Mini (which is the model I use with codex and never fails to call any tools there).
My general experience has been OpenAI models work fine without failing to call any tools in codex and they fail to call tools all the time in opencode, so I think the issue is specific to how opencode interacts with the models.
i disabled the todo tool for non sonnet models
let me look more into this
Hi
I solved some tool errors without forgetting to call /init at first.
stale