HeadlinesBriefing favicon HeadlinesBriefing.com

VS Code Corrects Copilot Attribution Bug in Commit Messages

Hacker News •
×

In Visual Studio Code version 1.110, Microsoft added a toggle to append a Co-authored-by: Copilot [email protected] trailer to commit messages. The `git.addAICoAuthor` setting offered three modes—off, chatAndAgent, and all—controlling when the Copilot attribution appears. The default stayed off until a later update shifted it to all. This shift intended to automatically flag AI‑generated code, reducing manual overhead for developers and teams daily.

However, a bug surfaced in version 1.117 when the default was pivoted to all, causing non‑Copilot completions to be misattributed. Even with `disableAIFeatures` enabled, the trailer appeared. Microsoft acknowledged the issue in GitHub issue 313064 and switched the default to chatAndAgent in 1.118 to curb false positives. The fix capped automatic attribution to only chat‑generated snippets, restoring accurate commit histories for teams.

Going forward, VS Code will revert the default to off and enforce that `disableAIFeatures` overrides any setting. Users must grant explicit consent before a trailer is added, and Microsoft plans to refine the message to a more descriptive “assisted‑by” format, potentially including model details. The next release, 1.119, will ship these safeguards for developers who rely on AI tools daily today.