diff --git a/.github/workflows/cursor-automation.yml b/.github/workflows/cursor-automation.yml index a60b74423..c8d61dda7 100644 --- a/.github/workflows/cursor-automation.yml +++ b/.github/workflows/cursor-automation.yml @@ -1103,7 +1103,7 @@ jobs: ' "$smoke_dir/.cursor" sudo --preserve-env=HOME,RUNNER_TEMP,GITHUB_WORKSPACE \ "$RUNNER_TEMP/cursor-agent-authenticated" \ - -p --mode=ask --trust --sandbox enabled --model auto --output-format text \ + -p --trust --sandbox enabled --model auto --output-format text \ --workspace "$smoke_dir" \ "Run exactly one shell command: node $RUNNER_TEMP/cursor-auth-probe.cjs. Then reply with its output verbatim. Do not use any other tool." \ > .cursor-runtime/agent-smoke-raw.txt diff --git a/scripts/cursor-automation.test.cjs b/scripts/cursor-automation.test.cjs index 4a00ab582..e3bff3e9e 100644 --- a/scripts/cursor-automation.test.cjs +++ b/scripts/cursor-automation.test.cjs @@ -1788,7 +1788,7 @@ test('workflow keeps sandbox probes credential-free and runs an authenticated ag assert.doesNotMatch(authenticatedSmokeStep, /CURSOR_API_KEY|CURSOR_AUTH_TOKEN/); assert.match( authenticatedSmokeStep, - /"\$RUNNER_TEMP\/cursor-agent-authenticated" \\\n\s+-p --mode=ask --trust/, + /"\$RUNNER_TEMP\/cursor-agent-authenticated" \\\n\s+-p --trust/, ); assert.doesNotMatch(smokeJob, /--api-key/); assert.match(smokeJob, /allow: \["Shell\(node\)"\]/);