Repository navigation
docs: say the action loads no Cursor settings from the checkout - #43
Conversation
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.
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reachedYou'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. View limit details
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. |
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.
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.cursorignorein 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-codestays0for a run that passestimeoutand 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 forsettingSourcesis a separate decision. Two comments in.github/workflows/ci.ymlrepeat the old claim and change in a follow-up.Verification
local.settingSourcesin@cursor/sdk1.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.createinsrc/runner.tsreceivesapiKey,local: { cwd },modeland the tool lists, nothing else..cursorignore: the SDK's read, write, grep and ls executors check it whateversettingSourcesis.bun run lint,bun run docs:reference(no drift),bun run docs:typecheckandbun run docs:buildpass.