The open-source app everyone uses to manage agents at work
TypeScript acpxagent-orchestrationagent-skillsagentic-aiai-agentsai-engineeringai-governanceai-toolsautonomous-agentsclaudeclaude-codeclaude-skillscodexhermesllmmcpmulti-agentopenclawproject-managementworkflow-automation
cursor adapter: use --yolo instead of --trust
Dotta69b287506097
diff --git a/packages/adapters/cursor-local/src/index.ts b/packages/adapters/cursor-local/src/index.tsindex b83a92dfd2..662bc8a7eb 100644--- a/packages/adapters/cursor-local/src/index.ts+++ b/packages/adapters/cursor-local/src/index.ts@@ -79,5 +79,5 @@ Notes:- Prompts are piped to Cursor via stdin.- Sessions are resumed with --resume when stored session cwd matches current cwd.- Paperclip auto-injects local skills into "~/.cursor/skills" when missing, so Cursor can discover "$paperclip" and related skills on local runs.-- Paperclip auto-adds --trust unless one of --trust/--yolo/-f is already present in extraArgs.+- Paperclip auto-adds --yolo unless one of --trust/--yolo/-f is already present in extraArgs.`;diff --git a/packages/adapters/cursor-local/src/server/execute.ts b/packages/adapters/cursor-local/src/server/execute.tsindex 66fad0b59f..162ed5c6c7 100644--- a/packages/adapters/cursor-local/src/server/execute.ts+++ b/packages/adapters/cursor-local/src/server/execute.ts@@ -299,7 +299,7 @@ export async function execute(ctx: AdapterExecutionContext): Promise<AdapterExecconst commandNotes = (() => {const notes: string[] = [];if (autoTrustEnabled) {- notes.push("Auto-added --trust to bypass interactive workspace trust prompt.");+ notes.push("Auto-added --yolo to bypass interactive prompts.");}notes.push("Prompt is piped to Cursor via stdin.");if (!instructionsFilePath) return notes;@@ -333,7 +333,7 @@ export async function execute(ctx: AdapterExecutionContext): Promise<AdapterExecif (resumeSessionId) args.push("--resume", resumeSessionId);if (model) args.push("--model", model);if (mode) args.push("--mode", mode);- if (autoTrustEnabled) args.push("--trust");+ if (autoTrustEnabled) args.push("--yolo");if (extraArgs.length > 0) args.push(...extraArgs);return args;};diff --git a/packages/adapters/cursor-local/src/server/test.ts b/packages/adapters/cursor-local/src/server/test.tsindex d6fca2aa07..152638124e 100644--- a/packages/adapters/cursor-local/src/server/test.ts+++ b/packages/adapters/cursor-local/src/server/test.ts@@ -138,7 +138,7 @@ export async function testEnvironment(const autoTrustEnabled = !hasCursorTrustBypassArg(extraArgs);const args = ["-p", "--mode", "ask", "--output-format", "json", "--workspace", cwd];if (model) args.push("--model", model);- if (autoTrustEnabled) args.push("--trust");+ if (autoTrustEnabled) args.push("--yolo");if (extraArgs.length > 0) args.push(...extraArgs);args.push("Respond with hello.");diff --git a/server/src/__tests__/cursor-local-adapter-environment.test.ts b/server/src/__tests__/cursor-local-adapter-environment.test.tsindex 039a7a45d4..e68922595a 100644--- a/server/src/__tests__/cursor-local-adapter-environment.test.ts+++ b/server/src/__tests__/cursor-local-adapter-environment.test.ts@@ -53,7 +53,7 @@ describe("cursor environment diagnostics", () => {await fs.rm(path.dirname(cwd), { recursive: true, force: true });});- it("adds --trust to hello probe args by default", async () => {+ it("adds --yolo to hello probe args by default", async () => {const root = path.join(os.tmpdir(),`paperclip-cursor-local-probe-${Date.now()}-${Math.random().toString(16).slice(2)}`,@@ -80,11 +80,11 @@ describe("cursor environment diagnostics", () => {expect(result.status).toBe("pass");const args = JSON.parse(await fs.readFile(argsCapturePath, "utf8")) as string[];- expect(args).toContain("--trust");+ expect(args).toContain("--yolo");await fs.rm(root, { recursive: true, force: true });});- it("does not auto-add --trust when extraArgs already bypass trust", async () => {+ it("does not auto-add --yolo when extraArgs already bypass trust", async () => {const root = path.join(os.tmpdir(),`paperclip-cursor-local-probe-extra-${Date.now()}-${Math.random().toString(16).slice(2)}`,