Where does the bug appear (feature/product)?
Cursor CLI
Describe the Bug
In the /changes review panel of the CLI, the open diff action never gives me a
usable diff when the scope is Unstaged, Staged or Committed. It fails in two
different ways depending on the directory the CLI was started from.
Problem 1 - the diff tab opens, but immediately fails to load the file.
When the CLI is started in the root directory of the repository, a diff tab does open in Cursor, but it instantly shows The editor could not be opened because the file was not found. Pressing Try Again shows Unable to read file '/var/folders/.../T/git-blob-7FaQFO/package-lock.json' (Error: Unable to resolve nonexistent file '/var/folders/.../T/git-blob-7FaQFO/package-lock.json'). Small files
sometimes load correctly, larger ones fail every time, so the size of the file matters.
Problem 2 - nothing opens at all, but the panel reports success.
When the CLI is started in a subdirectory of the repository instead of its root, which is
a common setup in monorepos, nothing opens at all — no tab, no window, no error. The
panel still shows the success message Opened diff in Cursor, so there is no indication
that anything went wrong.
Steps to Reproduce
Problem 1 - diff tab opens but fails to load:
- Start
cursor-agentin the root directory of a git repository. - Run
/changes. - Switch the scope with
[]toCommitted(orUnstaged). - Select a changed file and press
o. - A diff tab opens in Cursor and immediately reports that the file was not found.
Problem 2 - nothing opens, panel reports success:
- Start
cursor-agentin a subdirectory of a git repository, not in its root. - Run
/changes. - Choose the scope
Unstaged,StagedorCommitted. - Select any changed file and press
o. - Nothing opens, and the panel shows
Opened diff in Cursor.
Expected Behavior
Pressing o opens a diff for the selected file in Cursor, in every scope where the hint line at the bottom of the panel offers o open diff, and regardless of whether the CLI was started in the repository root or in a subdirectory. If the diff cannot be opened for any reason, the panel reports an error instead of the Opened diff in Cursor success
message.
Screenshots / Screen Recordings
Operating System
MacOS
Version Information
CLI Version 2026.08.11-e8db854
OS darwin (arm64)
Terminal ghostty
Shell zsh
Cursor 3.17.19
Commit ae3a2b7231dd56194447fe4570dfdc61640b1e90
Does this stop you from using Cursor
No - Cursor works, but with this issue
