Allow build drivers to request sandbox escape - #816
Conversation
c78f40e to
3b969fd
Compare
E2E screenshot updatesRefreshed (4)Clearly-different shots re-rendered by the CI e2e run and committed:
Ignored as render noise (7)These re-rendered below the variance threshold (font hinting / anti-alias wobble) and were not committed. To accept them anyway, add the
These PNGs live under |
Merge conflict needs a human
|
3b969fd to
479d6f2
Compare
479d6f2 to
a63bc85
Compare
# Conflicts: # tests/e2e/screenshots/panel-position-bottom.png # tests/e2e/screenshots/panel-position-side.png # tests/e2e/screenshots/ssh-projects-pane-after-enable.png
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_b77e1df8-1e4f-4fa2-ad9a-a26b093362b4) |
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_c72aec6c-de53-4daf-9d1c-46530115baa7) |






Closes #786
Summary
Validation
Note
Medium Risk
Changes shell permission classification for common build commands; misclassification could over-prompt or under-restrict, but scope is narrow and hard-external precedence is preserved in tests.
Overview
Host-dependent toolchain builds (
xcodebuild,gradle, andswift/cargobuild-style subcommands) are now classified as ambiguous instead of fully sandbox-contained, because they often need host caches (~/.gradle,~/.cargo,~/Library) or system build services even when argv looks workspace-local.On macOS these still auto-run inside seatbelt first; agents can use the existing
expects_sandbox_blockpath to request up-front approval to run outside the sandbox (same pattern asgh pr create). Hard-external signals (e.g.curlalongsidexcodebuild) stay external; version/metadata-only invocations likeswift --versionremain sandbox.Reviewed by Cursor Bugbot for commit b77fff4. Bugbot is set up for automated code reviews on this repo. Configure here.