opencode automatically creating git commits and coauthoring itself #565

Closed
opened 2026-02-16 17:27:22 -05:00 by yindo · 5 comments
Owner

Originally created by @mosessmax on GitHub (Jul 8, 2025).

Originally assigned to: @thdxr on GitHub.

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

Originally created by @mosessmax on GitHub (Jul 8, 2025). Originally assigned to: @thdxr on GitHub. 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](https://opencode.ai) Co-Authored-By: opencode <noreply@opencode.ai>
yindo closed this issue 2026-02-16 17:27:22 -05:00
Author
Owner

@CiaranMcAleer commented on GitHub (Jul 9, 2025):

Here is the cause, according to this it is intentional.

https://github.com/sst/opencode/blob/dev/packages/opencode/src/tool/bash.txt#L65C4-L69C1

@CiaranMcAleer commented on GitHub (Jul 9, 2025): Here is the cause, according to this it is intentional. https://github.com/sst/opencode/blob/dev/packages/opencode/src/tool/bash.txt#L65C4-L69C1
Author
Owner

@mosessmax commented on GitHub (Jul 9, 2025):

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.

@mosessmax commented on GitHub (Jul 9, 2025): 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.
Author
Owner

@wienans commented on GitHub (Jul 10, 2025):

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.

@wienans commented on GitHub (Jul 10, 2025): 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.
Author
Owner

@nick-galluzzo commented on GitHub (Jul 31, 2025):

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?

@nick-galluzzo commented on GitHub (Jul 31, 2025): 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?
Author
Owner

@rekram1-node commented on GitHub (Dec 27, 2025):

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

@rekram1-node commented on GitHub (Dec 27, 2025): [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#565