Skip to content

ability to disable git commands from opencode #1467

Closed

Description

@bczsalba

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.

Activity

  1. changed the title [-]disable `git` commands from opencode[/-] [+]ability disable `git` commands from opencode[/+] on Jul 31, 2025
  2. changed the title [-]ability disable `git` commands from opencode[/-] [+]ability to disable `git` commands from opencode[/+] on Jul 31, 2025
  3. self-assigned this
    on Aug 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions