Skip to content

Commit 58d5bec

Browse files
committed
fix: update default model value to 'auto' in action.yml and related tests
1 parent 841d6f2 commit 58d5bec

6 files changed

Lines changed: 12 additions & 7 deletions

File tree

.changeset/clean-frogs-attack.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"cursor-action": patch
3+
---
4+
5+
Update default model to "auto"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
| `api-key` | ✅ | — | Your Cursor API key. Store as a secret. |
3131
| `prompt` | ✅ | — | The prompt to pass to `cursor-agent`. |
3232
| `cursor-version` | ❌ | `latest` | Cursor CLI build to install. Use `latest` or an exact Cursor lab build id like `2026.03.20-44cb435`. |
33-
| `model` | ❌ | `claude-sonnet-4-5` | Model for the agent to use. |
33+
| `model` | ❌ | `auto` | Model for the agent to use. |
3434
| `working-directory` | ❌ | `.` | Directory the agent operates in. |
3535
| `permissions` | ❌ | `read-only` | Agent permissions: `read-only`, `read-write`, or `full`. |
3636
| `timeout` | ❌ | `300` | Timeout in seconds before the agent is killed. |

__tests__/input.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const setupInputs = (overrides: Record<string, string> = {}): void => {
1717
const defaults: Record<string, string> = {
1818
"api-key": "test-api-key",
1919
"cursor-version": "latest",
20-
model: "claude-sonnet-4-5",
20+
model: "auto",
2121
permissions: "read-only",
2222
prompt: "Review this code",
2323
timeout: "300",
@@ -38,7 +38,7 @@ describe("getInputs", () => {
3838
expect(inputs.cursorVersion).toBe("latest");
3939
expect(inputs.apiKey).toBe("test-api-key");
4040
expect(inputs.prompt).toBe("Review this code");
41-
expect(inputs.model).toBe("claude-sonnet-4-5");
41+
expect(inputs.model).toBe("auto");
4242
expect(inputs.permissions).toBe("read-only");
4343
expect(inputs.timeout).toBe(300);
4444
});

__tests__/runner.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const getExecCall = (): {
5050
const baseInputs: ActionInputs = {
5151
apiKey: "test-key",
5252
cursorVersion: "latest",
53-
model: "claude-sonnet-4-5",
53+
model: "auto",
5454
permissions: "read-only",
5555
prompt: "Analyze this code",
5656
timeout: 300,
@@ -87,7 +87,7 @@ describe("runAgent", () => {
8787

8888
const { args } = getExecCall();
8989
expect(args).toContain("--model");
90-
expect(args).toContain("claude-sonnet-4-5");
90+
expect(args).toContain("auto");
9191
});
9292

9393
it("includes read-only permission flag", async () => {

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ inputs:
2323
model:
2424
description: "Model to use for the agent"
2525
required: false
26-
default: "claude-sonnet-4-5"
26+
default: "auto"
2727

2828
working-directory:
2929
description: "Working directory for the agent to operate in"

src/input.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const getInputs = (): ActionInputs => {
1515
getInput("cursor-version", { required: false }) || "latest";
1616
const apiKey = getInput("api-key", { required: true });
1717
const prompt = getInput("prompt", { required: true });
18-
const model = getInput("model", { required: false }) || "claude-sonnet-4-5";
18+
const model = getInput("model", { required: false }) || "auto";
1919
const workingDirectory =
2020
getInput("working-directory", { required: false }) || ".";
2121
const permissionsRaw =

0 commit comments

Comments
 (0)