Skip to content

Guided Review forces Cursor sandbox on Linux, cannot create one + ignores user config #1094

Closed

Description

@Vincent-HD

Summary

Guided Review with the Cursor engine fails on Linux systems where Cursor Agent sandboxing is unavailable.

Plannotator launches Cursor Agent with --sandbox enabled, which overrides the user's Cursor Agent configuration—even when sandboxing has been explicitly disabled with:

agent sandbox disable

Environment
OS: NixOS / Linux
Plannotator: v0.23.1
Cursor Agent: 2026.07.09-a3815c0
Cursor configuration:

{
  "approvalMode": "allowlist",
  "sandbox": {
    "mode": "disabled"
  }
}

Steps to reproduce

  1. Configure Cursor Agent to use allowlist mode: agent sandbox disable
  2. Open a Plannotator code review.
  3. Select Guide / Start a guided review.
  4. Choose Cursor as the engine.
  5. Generate the guide.

Actual behavior

The guided review fails with:

Error: Sandbox mode is enabled but not available on this system.
Sandbox failed to start, possibly due to AppArmor configuration.
Visit https://cursor.com/docs/agent/terminal for troubleshooting steps.
Run 'agent sandbox disable' to switch to allowlist mode.

The error persists after running agent sandbox disable because Plannotator invokes Cursor with the sandbox explicitly enabled.
In v0.23.1, packages/server/marker-review.ts builds the Cursor command with:
"--sandbox", "enabled".

I fixed by doing an ugly workaround in my nix setup that removes the --sandbox:
Vincent-HD/.nixfiles@ff73def#diff-acbe854aae5415b9efb96e917df336b3f684c4b1f61812adee710e889d116fa6

Activity

  1. added a commit that references this issue on Jul 22, 2026
    11be15b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions