ability to disable git commands from opencode #1018

Closed
opened 2026-02-16 17:29:06 -05:00 by yindo · 0 comments
Owner

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

Originally assigned to: @thdxr on GitHub.

Currently whenever you utter the word "undo" there is roughly a 50% chance that you get a context-aware undo. If you're unlucky everything you've not committed is down the drain before you have a chance to react. I have 0 use for opencode being able to run git commands, so I'd like to just disable them wholesale. I'm sure I could do some shell-level trickery to empty the git command in the opencode environment but that's too janky to rely on imo.

Couldn't find any related issues (besides snapshot stuff), nothing in config either.

Originally created by @bczsalba on GitHub (Jul 31, 2025). Originally assigned to: @thdxr on GitHub. Currently whenever you utter the word "undo" there is roughly a 50% chance that you get a context-aware undo. If you're unlucky everything you've not committed is down the drain before you have a chance to react. I have 0 use for opencode being able to run git commands, so I'd like to just disable them wholesale. I'm sure I could do some shell-level trickery to empty the git command in the opencode environment but that's too janky to rely on imo. Couldn't find any related issues (besides snapshot stuff), nothing in config either.
yindo closed this issue 2026-02-16 17:29:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1018