Agent review GIT issue

Where does the bug appear (feature/product)?

Somewhere else…

Describe the Bug

Clicking “Review Again” in Agent review section results in error

Failed to gather Agent Review context.

Caused by:
    Error when executing 'git': fatal: Not a valid object name origin/production

Steps to Reproduce

Click “Review Again” in Agent review

Expected Behavior

Agent review without issues

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.1.39 (Universal)
VSCode Version: 1.105.1
Commit: 60d42bed27e5775c43ec0428d8c653c49e58e260
Date: 2025-11-27T02:30:49.286Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 25.2.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report! It seems like there’s a bug in the Agent Review feature where it’s trying to reference a git branch (origin/production) that doesn’t exist in your repository.

Could you please share:

  1. What git branches you have in your repository (run git branch -a)
  2. What branch you’re currently on
  3. Whether you have a remote named ‘origin’ configured

In the meantime, I’ve escalated this to the engineering team. The Agent Review feature is quite new and still being refined. Your other Cursor features should continue to work normally.