Skip to content

opencode automatically creating git commits and coauthoring itself #786

Closed

Description

@mosessmax

Just as the title might have declared, i create a session and allow opencode fix and then it automatically creates a git commit, stage it and writes a commit message and also co-author it

for example

Fix production deployment and WebSocket issues

  • Fix Socket.IO CORS and transport settings for production
  • Add fallback for WebSocket connection failures

🤖 Generated with opencode

Co-Authored-By: opencode noreply@opencode.ai

Activity

  1. self-assigned this
    on Jul 9, 2025
  2. CiaranMcAleer commented on Jul 9, 2025

    @CiaranMcAleer
    Contributor
  3. mosessmax commented on Jul 9, 2025

    @mosessmax
    Author

    well i love opencode but i'd prefer not to have this. there are some repo's/projects i'd like to not have the co-authored message even at times when i'm not ready to stage my changes. it just finishes the prompt and automatically writes a commit message.

    any idea on how to set a rule to ignore this? i'd appreciate.

  4. wienans commented on Jul 10, 2025

    @wienans
    Contributor

    Simply don’t ask it to commit anything and do your git commit yourself?

    As it is in there since a month i think this is nothing it does automatically only if you ask it to commit. I never saw opencode commuting anything by default in my repos.

    If you didn’t promt it for it, is maybe something along the lines in your agents file?

    If there is nothing in your agents file or in your promt about committing changes try in the agents file to explicitly say that it shouldn’t commit anything. Or try to say that it shouldn’t at itself as coauthor.

  5. nick-galluzzo commented on Jul 31, 2025

    @nick-galluzzo

    I've also noticed this. Opencode never prompted me for authorization to commit the changes on my behalf, nor did I ever explicitly tell it to do so. In addition, I'd prefer to selectively allow the co-authored message.

    If opencode is going to be making commits on my behalf, I would prefer the ability to confirm before it does so.

    Can this be changed?

  6. rekram1-node commented on Dec 28, 2025

    @rekram1-node
    Contributor

    [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

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