Git Commit Issues #232

Closed
opened 2026-02-16 17:25:52 -05:00 by yindo · 1 comment
Owner

Originally created by @timoclsn on GitHub (Jun 23, 2025).

Originally assigned to: @thdxr on GitHub.

I tried using opencode for git commit. While testing, I ran into two issues:

  • It stages files on its own: I use the staging area while working with agents to mark what I like and what is not ready yet. But when I tell opencode to commit the staged files, it sometimes stages more files on its own. I think this is a no-go if I don't prompt it to do so.

  • When doing a commit with opencode, it always adds the "🤖 Generated with [opencode]… " footer to the commit message, which I think implies that the code of this commit is generated and co-authored by AI, which doesn't have to be the case. I also like to use AI to just generate a commit message even when the code is written by hand.

I tried to prevent both cases via the prompt or the AGENT.md file, but I couldn't get it to stop doing it reliably. I think we would need to update the tool instructions.

I'll open a PR - feel free to close it if this change is not intended.

Originally created by @timoclsn on GitHub (Jun 23, 2025). Originally assigned to: @thdxr on GitHub. I tried using opencode for git commit. While testing, I ran into two issues: - It stages files on its own: I use the staging area while working with agents to mark what I like and what is not ready yet. But when I tell opencode to commit the staged files, it sometimes stages more files on its own. I think this is a no-go if I don't prompt it to do so. - When doing a commit with opencode, it always adds the "🤖 Generated with [opencode]… " footer to the commit message, which I think implies that the code of this commit is generated and co-authored by AI, which doesn't have to be the case. I also like to use AI to just generate a commit message even when the code is written by hand. I tried to prevent both cases via the prompt or the AGENT.md file, but I couldn't get it to stop doing it reliably. I think we would need to update the tool instructions. I'll open a PR - feel free to close it if this change is not intended.
yindo closed this issue 2026-02-16 17:25:52 -05:00
Author
Owner

@timoclsn commented on GitHub (Jun 24, 2025):

See: https://github.com/sst/opencode/pull/329#issuecomment-2996792029

@timoclsn commented on GitHub (Jun 24, 2025): See: https://github.com/sst/opencode/pull/329#issuecomment-2996792029
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#232