Skip to content

Agent-created revert commits (git revert) are missing Co-authored-by / Copilot-Session trailers #4997

Description

@mwiemer-microsoft

Describe the bug

When the agent in the Copilot desktop app creates a revert commit (via git revert), the commit is created without the configured commit trailers (Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> and Copilot-Session: <id>). Regular commits made by the agent in the same session include them.

Example

dotnet/roslyn@0234475

Commit message, in full:

Revert "Raise xUnit v3 CoreCLR test apphost stack reserve"

This reverts commit 61964a0ff57a0bde49d413147aa7e9e33bd02f02.

It has no Co-authored-by or Copilot-Session trailer.

Expected behavior

Revert commits the agent creates should get the same attribution trailers as other agent commits. git revert makes its own default message, so the agent probably needs to pass --edit/-m, or the trailers need to be added a different way (for example git revert --no-commit and then a commit that includes the trailers, or git commit --amend --trailer ...).

Related

Environment

  • Copilot desktop app on Windows, CLI version 1.0.87-0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:toolsBuilt-in tools: file editing, shell, search, LSP, git, and tool call behavior

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions