You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
opencode automatically creating git commits and coauthoring itself #786
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
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.
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.
Reacted by Nick Galluzzo, Asad Moosvi, Michael Czechowski, Husam Alshehadat, Abdulqudduus Babalola, scarf, Rasim ÖZDİNÇ and Gazeld
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?
Reacted by losnappas, <private> and Gabriel Tremeschin
Activity
CiaranMcAleer commentedon 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
mosessmax commentedon 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.
wienans commentedon 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.
nick-galluzzo commentedon 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?
rekram1-node commentedon Dec 28, 2025
[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
feat: add Pi-Agent detection via process name and breadcrumb scanning (…