Skip to content

Promote Cursor Grok 4.6 to the primary model picker - #1795

Merged
SawyerHood merged 1 commit into
mainfrom
bb/draft-pr-for-1688-cursor-grok-4-6-is-hidden-from-thr_x549vigphq
Aug 18, 2026
Merged

SawyerHood merged 1 commit into
mainfrom
bb/draft-pr-for-1688-cursor-grok-4-6-is-hidden-from-thr_x549vigphq

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

What was wrong

The Cursor tab of the model picker (and `bb provider models acp-cursor`) showed "Cursor Grok 4.5" but not "Cursor Grok 4.6", even though Cursor already lists Grok 4.6 (low/medium/high/xhigh, plus fast variants). Grok 4.6 only appeared under "More models". The built-in policy `BUILT_IN_ACP_LAUNCH_SPECS["acp-cursor"].modelCli.primaryModels` in `packages/agent-runtime/src/acp-launch-specs.ts` still named `cursor-grok-4.5-medium`. `splitPrimaryModels` matches by exact family id, so the newer family could not become primary until the string changed. This is a stale-constant bug, not a parsing or discovery bug. Report: https://get-bb.github.io/reports/issues/1688.html

What changed

  • `packages/agent-runtime/src/acp-launch-specs.ts`: replace `cursor-grok-4.5-medium` with `cursor-grok-4.6-medium` in the Cursor `primaryModels` list. Grok 4.5 stays selectable under "More models".
  • `plugins/provider-acp/src/bridge/issue-1688-grok-4.6-primary.test.ts` + `issue-1688-cursor-list-models.txt`: fixture-driven vitest that runs the captured `cursor-agent --list-models` output (Cursor CLI 2026.08.11) through `parseAgentModelLines -> buildAgentModelCatalog -> splitPrimaryModels` against the built-in policy. It asserts the Grok 4.6 family id and that the family lands in the primary list.

No `HOST_DAEMON_PROTOCOL_VERSION` bump: `primaryModels` is already `string[]` on the wire and only a value changes. Scope is the immediate one-line fix; the picker policy is not redesigned.

How I verified

  • `pnpm exec turbo run test --filter=bb-plugin-provider-acp --force` before the fix: the new test fails (`cursor-grok-4.6-medium` is in `selectedOnlyModels`), 1 failed | 145 passed.
  • After the fix: `pnpm exec turbo run test typecheck --filter=bb-plugin-provider-acp --filter=@bb/agent-runtime --force`: 5 tasks successful; provider-acp 8 test files passed, agent-runtime 30 test files passed; typecheck clean.
  • `prettier --check` on the new test passes.

Fixes #1688

AGENT GENERATED: by Claude Opus 5

The built-in acp-cursor primaryModels policy still named the Grok 4.5
family id, so splitPrimaryModels put Grok 4.6 under "More models".
Replace the id with cursor-grok-4.6-medium and add a fixture-driven test
that runs real cursor-agent --list-models output through the bridge
model/list pipeline against the built-in policy.

Fixes #1688

Co-Authored-By: Claude <[email protected]>
@SawyerHood
SawyerHood marked this pull request as ready for review August 18, 2026 18:19
@bb-slop-cop

bb-slop-cop Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

🚨 SLOP COP 🚨 · review

I am SlopCop. I review this pull request for security, code quality, performance, architecture, and user behavior. I will post one final review after the independent checks.

*/
import { readFileSync } from "node:fs";
import { describe, expect, it } from "vitest";
import { BUILT_IN_ACP_LAUNCH_SPECS } from "../../../../packages/agent-runtime/src/acp-launch-specs.js";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 slopcop/review — The test bypasses the Turbo dependency graph.

This test imports an internal source file from another package, but this package does not declare @bb/agent-runtime. Turbo does not hash acp-launch-specs.ts for this test. A later policy-only change can reuse a stale cached pass and skip this regression check. Please use a public package export and a development dependency, or move the test to a package that declares both dependencies.

@bb-slop-cop bb-slop-cop Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 SLOP COP 🚨 · review

Plain-English summary

This change puts Cursor Grok 4.6 in the main Cursor model list. Grok 4.5 remains available under More models. The new test uses captured Cursor output to verify the model family and all four effort choices.

Findings

  • One non-blocker affects test reliability. The new test imports a private file from an undeclared package. Turbo can reuse a stale cached pass after a later policy-only change. I left an inline comment with the fix options.
  • I found no security issue. The bridge passes model identifiers as separate process arguments without a shell.
  • I found no runtime performance issue. The production change replaces one static identifier, and the fixture runs only in tests.
  • I found no stale production name or duplicate policy source. The remaining Grok 4.5 references serve the older model family or another provider.

Validation

  • All 146 provider ACP tests passed.
  • Both affected package type checks passed.
  • The development app loaded, and the browser reached the Cursor model picker.
  • The local Cursor CLI required authentication, so it returned no live models. The captured output test verified the full catalog pipeline instead.

I found no merge blocker. Please correct the Turbo dependency before merge so this regression test remains reliable.

@SawyerHood
SawyerHood merged commit 1a0ccdc into main Aug 18, 2026
10 checks passed
@SawyerHood
SawyerHood deleted the bb/draft-pr-for-1688-cursor-grok-4-6-is-hidden-from-thr_x549vigphq branch August 18, 2026 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cursor Grok 4.6 is hidden from the primary model picker

1 participant