Repository navigation
Promote Cursor Grok 4.6 to the primary model picker - #1795
SawyerHood merged 1 commit into
Conversation
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]>
|
🚨 SLOP COP 🚨 · 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"; |
There was a problem hiding this comment.
🚨 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.
There was a problem hiding this comment.
🚨 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.
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
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
Fixes #1688