Skip to content

[testplan-item] Git - Add setting to include 'Co-authored-by:' commit trailer when AI codegen was used #297204

Closed

Description

Refs #266584

Complexity: 3

Create Issue


Context

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

  1. Open VS Code settings and search for the new Git AI co-author setting git.addAICoAuthor
  2. Verify the setting is off by default and change it to chatAndAgent
  3. Open a repo
  4. Make changes without using chat or agent, commit, hover over blame status bar -> you should see no co-author
  5. Make changes using chat and/or agent, commit, hover over blame status bar -> you should see Copilot as co-author
  6. Make changes using NES or editor completions, commit, hover over blame status bar -> you should see no co-author
  7. Repeat steps 4-6 with setting set to all - this time you should see co-author for NES/editor completions as well.
  8. 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.

Activity

  1. mrleemurray commented on Feb 24, 2026

    @mrleemurray
    Contributor

    For clarity, the setting is git.addAICoAuthor

  2. mrleemurray commented on Feb 24, 2026

    @mrleemurray
    Contributor

    Dmitriy Vasyura (@dmitrivMS) how do I specify an AI model & set a threshold? The instructions are a little vague

  3. dmitrivMS commented on Feb 24, 2026

    @dmitrivMS
    CollaboratorAuthor

    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.

  4. mrleemurray commented on Feb 24, 2026

    @mrleemurray
    Contributor

    I can confirm:

    • when Add AI Co Author is set the all chat, inline chat, & NES edits add the agent as co-author:
    Image Image
    • when set to chatAndAgent, NES commits no longer show agent co-author
  5. removed their assignment
    on Feb 24, 2026
  6. locked and limited conversation to collaborators on Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions