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
[testplan-item] Git - Add setting to include 'Co-authored-by:' commit trailer when AI codegen was used #297204
A new setting allows users to automatically include a 'Co-authored-by:' Git commit trailer when committing code that was generated by AI tools. Users can enable or disable this feature, specify which AI models are attributed, and set thresholds for when the trailer is added.
Test Steps
Open VS Code settings and search for the new Git AI co-author setting git.addAICoAuthor
Verify the setting is off by default and change it to chatAndAgent
Open a repo
Make changes without using chat or agent, commit, hover over blame status bar -> you should see no co-author
Make changes using chat and/or agent, commit, hover over blame status bar -> you should see Copilot as co-author
Make changes using NES or editor completions, commit, hover over blame status bar -> you should see no co-author
Repeat steps 4-6 with setting set to all - this time you should see co-author for NES/editor completions as well.
Set the setting back to 'off', verify you don't see co-author any more on any changes, including those done by AI.
Things to try:
Different types of changes/edits
Different git operations
Try opening a repo with co-author trailers included in commits, verify they are displayed in blame tooltips
Notes
There is no model attribution at the moment, so it's either Copilot or nothing.
If you feel we need to be more specific, please log an issue with your particular expectations.
Lee Murray (@mrleemurray) Apologies for the mess - I didn't have the time to update the auto-generated steps before it went out. Done now.
There is no AI model or threshold, but there is control of whether attribution is done for chat/agent only or NES/editor completions as well.
Activity
mrleemurray commentedon Feb 24, 2026
For clarity, the setting is
git.addAICoAuthormrleemurray commentedon Feb 24, 2026
Dmitriy Vasyura (@dmitrivMS) how do I specify an AI model & set a threshold? The instructions are a little vague
dmitrivMS commentedon Feb 24, 2026
Lee Murray (@mrleemurray) Apologies for the mess - I didn't have the time to update the auto-generated steps before it went out. Done now.
There is no AI model or threshold, but there is control of whether attribution is done for chat/agent only or NES/editor completions as well.
Please give it another try.
mrleemurray commentedon Feb 24, 2026
I can confirm:
Add AI Co Authoris set theallchat, inline chat, & NES edits add the agent as co-author:chatAndAgent, NES commits no longer show agent co-author