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:
- Detect the Git version and only add
--trailerif supported, or - Provide a configuration option to disable automatic trailer insertion, or
- 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:
- Have staged changes in a git repository
- Ask Cursor Agent to execute:
git commit --amend --no-edit - 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