Cursor 3.24.18 Linux: Agent file reader Permission denied; incorrect .cursorignore filtering

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

On Cursor 3.24.18 for Linux, the Agent’s dedicated file-reading tool fails with Error: Permission denied when accessing an existing, readable, Git-tracked ROS 2 package.xml file.

Workspace search also fails, incorrectly reporting that the same file is filtered out by .cursorignore.

However, the Cursor editor opens the file normally, and the Agent terminal successfully reads the entire file using /usr/bin/cat (exit code 0).

The project’s .cursorignore contains only:

build/
install/
log/
*.bag
*.db3

None of these patterns should exclude the tested source file.

The dedicated file-reading failure reproduces on two Linux machines running Cursor 3.24.18: an Ubuntu 24.04 Dev VM and an NVIDIA Jetson Orin Nano (ARM64).

Steps to Reproduce

  1. Open a ROS 2 project in a single-root Cursor workspace.
  2. Open src/rhs_robot_v1/rhs_robot_v1_control/package.xml in the editor.
  3. In Ask mode, request that Agent read the file using its dedicated file-reading tool. Result: Error: Permission denied.
  4. Request access using workspace search. Result: Error running tool: Path '...' is filtered out by .cursorignore.
  5. Ask Agent to read the same file using /usr/bin/cat. Result: Success, exit code 0, with complete file contents.

The file is tracked by Git and is not ignored according to git check-ignore. The .cursorignore file is readable, and no .cursorindexingignore exists in the project root.

Expected Behavior

The dedicated file-reading tool and workspace search should successfully access an existing source file that is readable by the editor and terminal and is not excluded by the project’s ignore rules.

Operating System

Linux

Version Information

Version: 3.24.18
VS Code Extension API: 1.128.0
Commit: be4c9e5350d77747b42cd467cbd3370a753d4640
Date: 2026-10-13T18:12:58.182Z
Layout: IDE
Build Type: Stable
Release Track: Default
Electron: 42.10.0
Chromium: 148.0.7778.280
Node.js: 24.18.1
V8: 14.8.178.38-electron.0
xterm.js: 6.1.0-beta.291
OS: Linux x64 7.0.0-38-generic

For AI issues: which model did you use?

Grok 4.7

For AI issues: add Request ID with privacy disabled

4152867f-1081-403a-92a2-7435daf33ab4

Additional Information

Dev VM: Ubuntu 24.04, Cursor 3.24.18 AppImage launched with --no-sandbox. Agent mode: Ask; Read Access: System; Run Mode: Auto-Review.

The Jetson additionally experiences a Step 4/7 Agent terminal sandbox initialization failure, which is being discussed separately:

The relationship between these failures has not been established.

Terminal-based file inspection provides a workaround on the Dev VM, but the Agent’s dedicated file-reading and workspace-search tools remain unusable for the tested file.

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the detailed report.

This looks like an issue we’re already tracking: Parent .cursorignore above workspace root affect Agent file access regardless of Hierarchical Cursor Ignore setting

It looks like the agent’s file tools Read and workspace search don’t only use the .cursorignore inside the project folder. They also pick up .cursorignore files from every parent folder all the way up to /, even if Hierarchical Cursor Ignore is turned off. The editor respects that setting, so the file opens there, but the agent says the file is filtered out. So your project’s .cursorignore patterns aren’t the cause.

To find the file, run this from the project root:

d="$PWD"; while [ "$d" != "/" ]; do d=$(dirname "$d"); [ -f "$d/.cursorignore" ] && echo "$d/.cursorignore"; done

Then:

  1. Open each file it finds and look for a line that matches the project folder or one of its parent folders. It could be a folder name or a broad pattern like */ or *.
  2. Remove or comment out that line, or narrow the pattern so it doesn’t catch the project.
  3. Fully close Cursor and reopen the project.
  4. In a new chat, ask the agent to read src/rhs_robot_v1/rhs_robot_v1_control/package.xml again.

The error is the same on both the VM and Jetson, so there’s probably a parent file like this on both machines. It might also explain the sandbox Step 4/7 error on Jetson. If a parent rule hides the whole workspace, top-level .vscode, .code-workspace, and .cursorignore can show up as “not found”. That’s still just a guess, so after changing it, please test again on Jetson, including the command in the agent terminal.

I’ve passed this to the team. Please let us know which file and which line caused it, and whether file reading and the terminal on Jetson started working after that.

Update — Root cause identified and workaround verified on Ubuntu Dev VM

Thanks, Dean. Your diagnosis was correct.

I found two parent .cursorignore files above my ROS 2 workspace:

  • /data/RHS_Projects.git_local/.cursorignore

  • /data/RHS_Projects.git_local/Projects/.cursorignore

Both contained:

# This directory should never be in a Cursor workspace
*

These were originally intended to discourage opening the repository’s upper-level directories as Cursor workspaces, not to exclude files from nested project workspaces.

I temporarily renamed both files to .cursorignore.disabled, fully restarted Cursor, and reopened the ROS 2 project in a single-root workspace.

Results with Cursor 3.24.18:

  • Dedicated Read tool: Success (previously Permission denied).

  • Workspace search: Success (previously incorrectly excluded by .cursorignore).

  • Agent terminal: Continues to work normally.

Both tools now access src/rhs_robot_v1/rhs_robot_v1_control/package.xml successfully.

This confirms that inherited parent .cursorignore rules caused the Agent file-access failures on my Ubuntu Dev VM.

I have not yet applied or tested the same workaround on the Jetson ARM64 system, so I cannot confirm whether it also resolves the separate Step 4/7 sandbox initialization failure.

I’ll report those results after testing the Jetson.

Update — Resolved by workaround on both Linux systems (Cursor 3.24.18)

Thanks, Dean. Your identification of inherited parent .cursorignore rules was correct.

I have now completed verification on both my Ubuntu 24.04 Dev VM and NVIDIA Jetson Orin Nano (ARM64).

Root cause

Both systems had two .cursorignore files above the ROS 2 project’s workspace root.

Dev VM:

  • /data/RHS_Projects.git_local/.cursorignore

  • /data/RHS_Projects.git_local/Projects/.cursorignore

Jetson:

  • /home/rhscott/GitRepos/RHS_Projects.git_local/.cursorignore

  • /home/rhscott/GitRepos/RHS_Projects.git_local/Projects/.cursorignore

Each file contained:

# This directory should never be in a Cursor workspace
*

These rules were intended to discourage opening the parent repository directories as Cursor workspaces, not to exclude files from nested project workspaces.

Workaround

On both machines, I temporarily renamed the two parent .cursorignore files to .cursorignore.disabled, fully restarted Cursor, and reopened the ROS 2 workspace.

The project’s own .cursorignore was left unchanged.

Verification results

Test Dev VM Jetson ARM64
Dedicated Read before workaround Permission denied Permission denied
Dedicated Read after workaround Success Success
Workspace search after workaround Success Not retested
Auto-Review sandboxed terminal after workaround Previously working Success

On the Jetson, the dedicated Read tool successfully read:

src/rhs_robot_v1/rhs_robot_v1_control/package.xml

Package name: rhs_robot_v1_control

Additionally, the Jetson Agent terminal, running in Auto-Review (with Sandbox) mode in a fresh conversation, successfully executed:

/usr/bin/printf 'CURSOR_AGENT_SANDBOX_TEST_OK\n'

Output: CURSOR_AGENT_SANDBOX_TEST_OK

Exit code: 0

No sandbox initialization error occurred.

Status: Resolved by workaround

The dedicated Agent file-reading issue is now resolved on both machines using the parent .cursorignore workaround.

The Jetson’s previously reported Step 4/7 sandbox initialization error also did not recur after applying the workaround.

This confirms the inherited parent ignore rules were responsible for the file-access failures. The precise mechanism linking those rules to the sandbox mount failure has not been independently established.

The underlying Cursor 3.24.18 behavior remains a bug; this is a verified workaround, not a product fix.

Thanks for identifying the relevant existing issue and helping us isolate the cause.

Thanks for seeing the check through on both machines and for writing everything up so clearly.

You’re right: this is a workaround, not a fix. Agent file tools apply .cursorignore from parent folders even when Hierarchical Cursor Ignore is turned off, and it isn’t related to your setting. I’ve passed all the details to the team, including which files were found, the * pattern, and the results on the Dev VM and Jetson. I also called out that on Jetson, the sandbox error at Step 4/7 disappeared at the same time.

Until this is fixed, it’s best to leave those renamed parent files as they are. With * in the parent .cursorignore, agent tools will block any nested workspace. There’s no ETA yet, but I’ll post here when I have an update.

Also hitting agent file/tool permission weirdness on Windows (Cursor 3.24.x). Settings → Bot → Execution on Local Computer is set to Always, and ListMachines shows the PC connected, but any Shell/Read with machineId still fails with: Local tools are turned off. The user has set local tool access to "Never". Cloud/box agents work fine. Restarting the local PC and the agent did not clear it. Feels related to agent tools treating an access policy incorrectly (similar class of bug to inherited ignore / Permission denied).

Hey @CannonKing, this is a different issue and it isn’t related to the .cursorignore from that thread. The error Local tools are turned off. The user has set local tool access to "Never" that shows up even when the setting is set to Always and the computer is connected is a Grok Bot issue that we’re already tracking. Your setting isn’t the cause here, and the message about “Never” is misleading in this case.

To keep these two issues separate, let’s continue in the dedicated thread: Grok Bot 0.71.2 cannot access local file system on Windows 11. Please post there:

  1. Your Grok Bot version, not Cursor IDE.
  2. Whether you’re using the same account in Cursor, Grok, and X. In this thread Grok Bot can't run local tools on my Mac: setting stuck on "Never" (this account only) / Grok Bot 无法在我的 Mac 上执行本地操作,设置一直被当成「从不」(仅此账号) one user said merging their accounts helped, but it didn’t work for others with unified accounts, so it’s something worth checking, not a guaranteed fix.

For now, you can transfer files between your computer and the bot through chat attachments. There’s no timeline for a fix yet. We’ll post updates in the dedicated thread.