Bug Report: Git commit commands automatically add unsupported `--trailer` option

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Dear Cursor Team,

I would like to report a bug I encountered when using Cursor’s Shell tool to execute git commit commands.

Issue Description:

When I request Cursor Agent to execute a simple git commit command like:

git commit --amend --no-edit

The system automatically appends a --trailer "Made-with: Cursor" parameter to the command, which results in:

git commit --trailer "Made-with: Cursor" --amend --no-edit

Problem:

This causes the command to fail on systems running older versions of Git that don’t support the --trailer option. The error message is:

error: unknown option `trailer'

Expected Behavior:

The Shell tool should either:

  1. Detect the Git version and only add --trailer if supported, or
  2. Provide a configuration option to disable automatic trailer insertion, or
  3. Not automatically modify user-requested git commands

Environment:

  • OS: Linux 5.15.0-46-generic
  • Shell: bash
  • Git version: (older version without --trailer support)
  • Cursor Agent mode: Standard agent mode using Shell tool

Steps to Reproduce:

  1. Have staged changes in a git repository
  2. Ask Cursor Agent to execute: git commit --amend --no-edit
  3. Observe that the command fails with “unknown option ‘trailer’” error

Workaround:

Currently, I have to manually execute the command in a separate terminal to avoid the automatic --trailer parameter injection.

Thank you for looking into this issue. I appreciate all the great work you’re doing with Cursor!

Best regards

Steps to Reproduce

just see the desribe

Expected Behavior

do not add any commands on the AI model output

Operating System

Linux

Version Information

Version: 2.5.26
VSCode Version: 1.105.1
Commit: 7d96c2a03bb088ad367615e9da1a3fe20fbbc6a0
Date: 2026-02-26T04:57:56.825Z
Build Type: Stable
Release Track: Default
Electron: 39.4.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Linux x64 5.15.0-46-generic

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, this is expected behavior - Cursor adds --trailer "Made-with: Cursor" to git commits by default for attribution. The problem is that your Git version doesn’t support --trailer (it was added in Git 2.32).

To fix this, go to Cursor Settings > Agents > Attribution and disable Commit Attribution (“Mark Agent commits as ‘Made with Cursor’”). You can also disable PR Attribution if needed.

Alternatively, upgrading Git to 2.32+ would also resolve the incompatibility.

That said, the point about Cursor not checking the Git version before adding --trailer is valid - I’ve flagged it with the team. No ETA, but your report helps with prioritization.

Let me know if that resolves it.