opencode automatically creating git commits and coauthoring itself
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 [email protected]
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
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.
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?
[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!