Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/adapters/cursor/discovery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export const CURSOR_STATIC_MODELS: readonly CursorModelInfo[] = normalizeCursorM
{ id: "grok-4.5-fast", contextWindow: 500_000, supportsReasoningEffort: true },
// 260813 preemptive: grok-4.6 seeded ahead of Cursor's lineup update (mirrors grok-4.5).
{ id: "grok-4.6", contextWindow: 500_000, supportsReasoningEffort: true },
{ id: "grok-4.6-fast", contextWindow: 500_000, supportsReasoningEffort: true },
{ id: "grok-4.6-fast", contextWindow: 256_000, supportsReasoningEffort: true },
]);

export function cursorModelIds(models: readonly CursorModelInfo[] = CURSOR_STATIC_MODELS): string[] {
Expand Down
2 changes: 2 additions & 0 deletions tests/cursor-discovery.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ describe("Cursor discovery metadata", () => {
expect(ids).toContain("glm-5.2");
expect(ids).toContain("kimi-k2.7-code");
expect(ids).toContain("kimi-k3");
expect(ids).toContain("grok-4.6-fast");
expect(ids).toContain("claude-opus-4-7-fast");
// 260709 refresh: stale ids dropped from the static seed (cursor.com docs); gpt-5.5-extra
// stays — it survives the live GetUsableModels filter (004_live_snapshot.md).
Expand All @@ -50,6 +51,7 @@ describe("Cursor discovery metadata", () => {
expect(cursorModelContextWindows(CURSOR_STATIC_MODELS)[id]).toBe(200_000);
}
expect(cursorModelContextWindows(CURSOR_STATIC_MODELS)["composer-2.5-fast"]).toBe(200_000);
expect(cursorModelContextWindows(CURSOR_STATIC_MODELS)["grok-4.6-fast"]).toBe(256_000);
});

test("auto is not activated by live GetUsableModels wire ids alone", () => {
Expand Down
7 changes: 7 additions & 0 deletions tests/cursor-effort-suffix.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@ describe("Cursor per-model reasoning-effort suffix", () => {
expect(cursorModelEffortLadder("grok-4.5-fast")).toEqual(["low", "medium", "high"]);
});

test("grok-4.6 sends effort and Fast as separate model parameters", () => {
expect(selectionFor("cursor/grok-4.6-fast", "high")).toEqual({
modelId: "grok-4.6",
parameters: [{ id: "effort", value: "high" }, { id: "fast", value: "true" }],
});
});

test("regular grok-4.5 request ids match the recorded discovery fixture", () => {
for (const effort of ["low", "medium", "high"] as const) {
const requestModelId = modelIdFor("cursor/grok-4.5", effort);
Expand Down
Loading