[BUG] "git add && git commit" doesn't trigger co-author trailer

Resolved 💬 4 comments Opened Jun 12, 2025 by anuramat Closed Dec 10, 2025

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.21 <!-- output of claude --version -->
  • Operating System: NixOS 25.05 <!-- e.g. macOS 14.3, Windows 11, Ubuntu 22.04 -->
  • Terminal: foot 1.22.3 <!-- e.g. iTerm2, Terminal App -->

Bug Description

git add . && git commit -m <commitmsg> doesn't get recognized as a commit command:

  • asks for permission for git add
  • execution doesn't trigger "Co-Authored By" suffix

Steps to Reproduce

  1. ask claude to make a commit using this exact form (add && commit)
  2. ???
  3. profit

Expected Behavior

  • co-author trailer in the commit message
  • add & commit being treated as a commit command

Actual Behavior

  • no trailer in the commit message
  • permission prompt for git add pops up

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗