opencode keeps trying to format using tools that aren't installed #446

Closed
opened 2026-02-16 17:26:44 -05:00 by yindo · 2 comments
Owner

Originally created by @bczsalba on GitHub (Jul 2, 2025).

Originally assigned to: @thdxr on GitHub.

I don't really love formatters, so I don't have any installed. Every time opencode makes an edit it complains about not finding ruff, after which it tries to make the same edit again, rereads the file because it was changed by itself, realizes the edit was already done and moves on. This makes single edits take 4 messages from the LLM, and I assume also burns credits like no tomorrow.

From a cursory glance it seems formatters should only be enabled if they exist, but that doesn't seem to be working on my end (Ubuntu latest, Gnome and Ghostty if any of that says anything useful). Ideally I'd like to be able to disable the feature altogether, but just fixing this would go a long way for my wallet!

great work btw

Originally created by @bczsalba on GitHub (Jul 2, 2025). Originally assigned to: @thdxr on GitHub. I don't really love formatters, so I don't have any installed. Every time opencode makes an edit it complains about not finding `ruff`, after which it tries to make the same edit again, rereads the file because it was changed by itself, realizes the edit was already done and moves on. This makes single edits take 4 messages from the LLM, and I assume also burns credits like no tomorrow. From a cursory glance it seems formatters should only be enabled _if_ they exist, but that doesn't seem to be working on my end (Ubuntu latest, Gnome and Ghostty if any of that says anything useful). Ideally I'd like to be able to disable the feature altogether, but just fixing this would go a long way for my wallet! great work btw
yindo closed this issue 2026-02-16 17:26:44 -05:00
Author
Owner

@rekram1-node commented on GitHub (Jul 2, 2025):

made a PR for the fix, seems like it was a simple 1 liner (unawaited promise)

@rekram1-node commented on GitHub (Jul 2, 2025): made a PR for the fix, seems like it was a simple 1 liner (unawaited promise)
Author
Owner

@bczsalba commented on GitHub (Jul 3, 2025):

Cheers!

@bczsalba commented on GitHub (Jul 3, 2025): Cheers!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#446