Skip to content

docs: say the action loads no Cursor settings from the checkout - #43

Merged
PunGrumpy merged 3 commits into
mainfrom
docs/no-ambient-cursor-settings
Nov 29, 2026
Merged

PunGrumpy merged 3 commits into
mainfrom
docs/no-ambient-cursor-settings

Conversation

@PunGrumpy

@PunGrumpy PunGrumpy commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Why

The docs and the security model said Cursor loads project rules, hooks and settings from the working directory. It does not. The action never passes settingSources, and the SDK loads no settings layer unless one is named. Two costs follow. A workflow author expects the repository's rules to steer a review, and they silently do not. And the security model lists .cursor/ hooks from a pull request as a channel that does not exist.

What changed

  • docs/content/behaviour.mdx: the Isolation section says what the agent reads, what it does not load, and that a .cursorignore in the checkout still applies. The API-key step no longer mentions hooks.
  • SECURITY_MODEL.md: the pull-request trust boundary and the existing controls say the same.
  • docs/content/reference.mdx: exit-code stays 0 for a run that passes timeout and finishes during the cancel grace. The behaviour page already said so.

Scope

Text only. No code path changes and dist/ is untouched. Whether to add an opt-in input for settingSources is a separate decision. Two comments in .github/workflows/ci.yml repeat the old claim and change in a follow-up.

Verification

  • local.settingSources in @cursor/sdk 1.3.1 (options.d.ts). Its implementation turns every layer off when the option is omitted, and Cursor's SDK guidance says ambient settings are not loaded by default.
  • Agent.create in src/runner.ts receives apiKey, local: { cwd }, model and the tool lists, nothing else.
  • .cursorignore: the SDK's read, write, grep and ls executors check it whatever settingSources is.
  • bun run lint, bun run docs:reference (no drift), bun run docs:typecheck and bun run docs:build pass.
  • Not verified: a live run with a hook in the checkout.

The action never passes settingSources to the SDK, and the SDK loads no settings layer unless one is named. So project rules, hooks, skills and MCP servers in the checkout are not applied. The docs and the security model said they were, which promised rule-following that does not happen and listed a hook channel that does not exist.
The reference said exit-code is 1 whenever a run times out. A run that passes the timeout and finishes while the cancel request is pending keeps exit code 0 with a warning, as the behaviour page already says.
@changeset-bot

changeset-bot Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 86f841a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel

vercel Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cursor-action Ready Ready Preview Nov 29, 2026 8:11am UTC

@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 44 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4d5e4fd3-e8d8-4ef5-81bc-e8933eec7852
Commits

Reviewing files that changed from the base of the PR and between 4b603c1 and 86f841a.

Files selected for processing: 3

  • SECURITY_MODEL.md
  • docs/content/behaviour.mdx
  • docs/content/reference.mdx
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

The SDK loads no settings layer without settingSources, but its file tools still honor a .cursorignore in the working directory. Saying nothing in the directory configures the run was too broad, and a pull request can use that file to keep paths out of the agent's view.
@PunGrumpy
PunGrumpy merged commit a0ec6dc into main Nov 29, 2026
12 checks passed
@PunGrumpy
PunGrumpy deleted the docs/no-ambient-cursor-settings branch November 29, 2026 08:13

This branch was successfully deployed

1 active deployment
Preview — 86f841a0 Deployed Nov 29, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant