Skip to content

Copilot commit generation intermittently appends extra description and adds Copilot as official co-author #22815

Closed

Description

@LiebeBlack

The problem

When using GitHub Desktop to auto-generate commit titles and descriptions via GitHub Copilot, the AI generates the summary correctly. However, in some instances (this has occurred roughly 6 times so far out of 14 commits), it automatically appends an extra text block at the end of the description containing a Co-authored-by: trailer (Co-authored-by: Copilot [email protected]). If the user does not notice or manually delete this line before committing and pushing the changes, GitHub officially registers Copilot as a co-author on the repository for that commit, despite the AI not contributing any actual code.

Expected behavior:
Copilot should only generate a concise title and description relevant to the code changes, leaving commit authorship entirely to the developer unless explicitly configured otherwise.

Actual behavior:
Copilot intermittently inserts the Co-authored-by: Copilot [email protected] trailer into the description box. Upon pushing, GitHub marks Copilot as an official co-author of the commit.

Release version

3.6.4 and 3.6.5

Operating system

Windows 19045.7663

Steps to reproduce the behavior

  1. Open GitHub Desktop with staged changes in a repository.
  2. Click the Copilot button (sparkle icon) to generate a commit title and description.
  3. Wait for Copilot to populate the text fields.
  4. Observe the description field to see if the Co-authored-by trailer was appended (occurs intermittently, approx. ~40% of generations).
  5. If uncorrected, commit and push the changes to GitHub.
  6. View the commit on GitHub.com to see Copilot listed as an official co-author.

Log files

No relevant error entries found in the application logs, as this is a UI text-generation/pre-fill bug in the Copilot integration.

Screenshots

No response

Additional context

  • Intermittent Behavior: This occurs randomly during commit message generations (~6 out of 14 generations in testing).
  • Unintended Contributor Attribution & Privacy Risk: Adding Co-authored-by: Copilot automatically tags an external AI identity as a contributor to private or public projects without explicit opt-in consent from the repository owner.
  • Pollution of Git History: Once pushed, these trailers permanently alter the commit metadata, requiring a forced branch rewrite (git rebase -i and force push) to clean up if committed accidentally.

Activity

  1. desktop-triage commented on Sep 4, 2026

    @desktop-triage

    Triage summary: This report describes Copilot's commit-message generator intermittently inserting a Co-authored-by: Copilot <...> trailer that the user never requested, which can silently tag Copilot as a co-author on push. I'm suggesting bug since the reported behavior (unsolicited trailer text appended to generated descriptions) is inconsistent with how the feature is documented to work. No duplicate issues were found for this specific symptom (a related-but-distinct request, "Generate Conventional Commit Messages with Copilot," asks for Conventional Commits formatting, not this trailer-injection problem).

    Initial hypothesis: The commit-message generation system prompt instructs the model to return only a JSON object with title and description fields and gives no instruction to add trailers — see CommitMessageSystemPrompt in app/src/lib/stores/copilot-store.ts. This means the Co-authored-by: Copilot text is not deliberately generated by application code; it is most plausibly the model itself occasionally producing a Git-trailer-style line inside the description field (a known LLM habit when it infers it authored the text, especially since this exact trailer format/address is commonly seen in AI-assisted commit tooling), which the app then displays verbatim without stripping. To confirm, a maintainer would want to inspect the raw JSON response from a reproduction case (or add temporary logging) to verify whether the trailer originates in the model's own JSON description output versus being appended by any downstream code path such as generateCommitMessagePromptTags/buildCommitMessageUserPrompt or commit-description rendering.

    Duplicate check: No exact or close duplicate found; #22815 stands as the only report of this specific intermittent trailer-injection behavior.

    Generated by Issue Triage (skills-driven) for #22815 · auto · 42.9 AIC · ⌖ 1.41 AIC · ⊞ 9.3K · ◷

  2. LiebeBlack commented on Sep 6, 2026

    @LiebeBlack
    Author

    It keeps happening. in the 3.6.5 (x64)
    Image

  3. added
    bug
    and removed on Sep 10, 2026
  4. LiebeBlack commented on Sep 11, 2026

    @LiebeBlack
    Author

    It's still happening, I did several reviews, I'm on the stable version, I checked the logs myself, and nothing useful is found.

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

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions