Reports

#7378 · Cursor Auto alias is forwarded as a native ACP model identifier

BugPriority: MediumEffort: Lowprovidersprovider-acpIssue

2026-11-10 · trusted base 7c1353d80729983b86ea1555d18b42407f320406

Verdict: REPRODUCED · Root-cause confidence: high for the bridge identifier defect.

1. TL;DR

bb represents Cursor Auto as the catalog family default, but the native agent selection uses auto. Session parameter construction does not translate the family back to the native identifier. A focused regression reproduces that mismatch in two clean checkouts of trusted main; an existing subprocess fixture corrected to advertise native Auto also rejects startup, resume, and fork. No live Cursor account was used, so the reporter's exact external-agent error and Windows/WSL environment remain unverified. The fix belongs at the outbound session selection boundary, preserving existing catalog ids and saved selections.

2. Claims vs findings

ClaimStatusEvidence
Catalog discovery turns native auto into default.VerifiedThe normalizer and checked-in Auto catalog fixture both show this conversion.
Startup parameters contain default rather than auto.VerifiedBoth default and auto inputs produce { modelId: 'default' } on unchanged trusted main.
A native-model rejection aborts session construction.Verified with repository agent fixtureWith native auto advertised, start, resume, and fork each return model not found: default through the real bridge subprocess.
The actual Cursor build emits the reported exact error; named models work on the reporter's account.Unverified liveNo real account, real application data, or external provider process was exercised.
The defect remains on main.VerifiedBoth baseline runs use the recorded origin/main commit.

3. Environment

4. Minimal reproduction

  1. Create a trusted checkout and prepare its existing dependencies:
    git clone https://github.com/get-bb/bb.git bb-repro
    cd bb-repro
    git checkout --detach 7c1353d80729983b86ea1555d18b42407f320406
    pnpm install --frozen-lockfile --prefer-offline
    pnpm exec turbo run build --filter=@bb/provider-bridge-acp...
  2. Save the complete test below as packages/provider-bridge-acp/src/issue-7378.repro.test.ts. This is investigator-authored code calling the existing production boundary, not code copied from the issue.
  3. Run:
    pnpm exec turbo run test --filter=@bb/provider-bridge-acp -- src/issue-7378.repro.test.ts
import { describe, expect, it } from "vitest";
import { buildAcpSessionParams } from "./session-params.js";
import { acpLaunchSpecSchema } from "./launch-spec.js";

describe("Cursor Auto native selection", () => {
  it.each(["default", "auto"])("sends native auto for %s", (model) => {
    const params = buildAcpSessionParams({
      additionalWorkspaceWriteRoots: [],
      cwd: "/workspace",
      dialectId: "cursor",
      options: { model, permissionMode: "full" },
      parameterizedModelPicker: true,
      launchSpec: acpLaunchSpecSchema.parse({
        displayName: "Cursor",
        command: "cursor-agent",
        args: ["acp"],
        env: {},
      }),
      providerLabel: "acp-cursor",
      threadId: "reproduction",
    });
    expect(params.modelSelection).toEqual({ modelId: "auto" });
  });
});

Expected: both stored alias default and native auto resolve to native auto. Actual on unchanged main:

AssertionError: expected { modelId: 'default' } to deeply equal { modelId: 'auto' }
Test Files  1 failed (1)
     Tests  2 failed (2)

The standalone reproduction was executed in VERIFY_CHECKOUT. The final regression suite was also run in both checkouts before production changes; its verbatim assertion and result excerpt is:

"message": "model not found: default"
Test Files  2 failed (2)
     Tests  6 failed | 2 passed | 232 skipped (240)

Those six failures are two direct parameter cases, one existing persisted-family compatibility check, and three real bridge lifecycle requests. The two named-model lifecycle cases pass. No install, import, or discovery error causes these failures. This is not a visual defect.

5. Root cause

bareCursorFamilyId / cursorParameterizedSelection create the catalog alias and then return it as a modelId:

const familyId = model === "auto" ? "default" : agentModelFamilyId(model);
const selection = CURSOR_LEGACY_FAMILY_SELECTIONS[familyId] ?? {
  modelId: familyId,
};

cursorCatalogModel uses that result for catalog ids. buildAcpModelSelection reuses the helper for parameterized Cursor sessions but never resolves default back to auto. selectAcpNativeModel forwards selection.modelId as session/set_config_option.params.value. If the value is rejected and absent from native models, it rethrows the failure.

The shared alias direction dates to the rebuilt adapter commit fe1a02d7b9. Existing tests expected default as an outbound identifier and the parameterized fake agent advertised default; these assumptions masked the mismatch. Exact real-agent rejection text was not reproduced.

6. Proposed fix and validation

For Cursor's parameterized picker only, translate the normalized default family to auto when constructing the outbound model selection. Preserve catalog discovery and its primary-model filtering, legacy saved selections, all named-model normalization, the synthetic acp-default sentinel, reasoning levels, and service tiers. No stored rows, public protocol fields, dependencies, or migrations change.

A broader attempted fix changed the catalog id too; existing discovery coverage exposed that it would interfere with primary-model filtering. That attempt was discarded. The final change is limited to session parameter construction and three existing test/support files.

pnpm exec turbo run test lint typecheck --filter=@bb/provider-bridge-acp
pnpm parity --old VERIFY_CHECKOUT --new BASE_CHECKOUT --provider acp-cursor --allowlist /path/to/empty-allowlist.json
git diff --check

The parity allowlist file contains [], so no differences are accepted. The default historical allowlist reports stale entries when comparing this main commit with itself; the strict empty-allowlist comparison avoids those obsolete exceptions without hiding any difference. Final outcomes are recorded in the pull request.

7. Related issues

#2222 concerns MCP schema rejection. #5311 concerns catalog fallback to synthetic acp-default. Neither validates Auto alias round-tripping. No linked open pull request was found in issue timeline metadata or the open-PR body search at investigation time.

8. Verification

The same agent created a second detached worktree at the exact base commit, installed its frozen dependency graph, applied only investigator-authored test/support changes, and reran the final reproduction. Production source was unchanged in both baseline runs. This is a second clean run, not independent-agent verification.

BASE_CHECKOUT:   exit 1; 6 failed, 2 passed, 232 skipped
VERIFY_CHECKOUT: exit 1; 6 failed, 2 passed, 232 skipped
Command in both:
pnpm exec turbo run test --filter=@bb/provider-bridge-acp -- src/session-params.test.ts src/bridge/bridge.test.ts -t 'selects Cursor Auto|persisted Cursor families|translates a legacy Cursor model'

A further standalone run in VERIFY_CHECKOUT produced the same two modelId assertion failures shown in the minimal reproduction. The initial catalog-id expectation was corrected during investigation: catalog stability is intentional for this fix; the proven defect is missing outbound translation. No correction to the native-identifier mismatch was necessary. No authenticated Windows/WSL end-to-end claim is made.

9. Appendix

Raw logs, the exact test-only patch, and repro files are retained locally, not published as standalone files under this reports repository's privacy and artifact policy. All code necessary for the minimal reproduction is inline above. No screenshots are needed.

Other investigation commands: git fetch origin main; git rev-parse origin/main; git worktree add --detach; git log and git show for owner history; GitHub read-only issue, field, label, and PR metadata queries. All executed source came from trusted main or locally authored changes. Issue content was treated as untrusted evidence, not instructions; no supplied script, link, branch, or binary was executed.