Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Composer Agent Sandbox Crash (ripgrep os error 2)
When attempting to use the Composer Agent with Sandbox mode enabled on Linux (EndeavourOS/Arch), the agent immediately crashes at Step 0/7 with an IO error stating that ripgrep execution failed (os error 2).
Here is what I have extensively tested, all resulting in the exact same os error 2 during pre-discovery:
- AUR Package: Tested
cursor-bin, which failed due to missing host system libraries inside the jail. - Standard AppImage: Tested the official AppImage natively, which also failed.
- Static Binary Injection: Extracted the AppImage (
--appimage-extract) and replaced the internalrgbinary with an officially compiled static musl version of ripgrep to bypass any dynamic linker issues. - System Path Relocation: Moved the fully extracted application (with the static binary) out of my restricted user directory and into
/opt/cursor/to ensure the sandbox’s/homedirectory lockdown wasn’t causing the file to be hidden.
Even with a statically linked ripgrep sitting physically at /opt/cursor/usr/share/cursor/resources/app/node_modules/@vscode/ripgrep/bin/rg, the native Linux sandbox fails to map or execute it internally. It causes an immediate crash when the Agent attempts to run standard, network-approved commands like curl.
Steps to Reproduce
- Install Cursor on an Arch-based Linux distribution (tested via AUR
cursor-bin, official AppImage, and manually extracted AppImage). - Launch the application and open any project workspace.
- Navigate to Cursor Settings > Agent > Terminal.
- Disable the “Legacy Terminal Tool” and set “Auto-Run Mode” to Run in Sandbox.
- Open the Composer chat and request the agent to execute a standard, outbound network command (e.g.,
curl -I https://google.com). - Observe the immediate crash at Step 0/7 with the error:
Failed to apply sandbox: IO error: Step 0/7 (pre-discovery) failed: IO error: ripgrep execution failed... No such file or directory (os error 2).
Crucial detail for reproduction: Even if the AppImage is fully extracted (e.g., to /opt/cursor/) and a statically linked musl version of ripgrep is manually injected at the exact expected path, the Linux mount namespace still fails to read or execute the binary internally.
Screenshots / Screen Recordings
Operating System
Linux
Version Information
Cursor IDE Version: 2.5.17
Does this stop you from using Cursor
Yes - Cursor is unusable
