Skip to content

Fix Cursor reasoning ladders for every model - #2960

Merged
SawyerHood merged 2 commits into
get-bb:mainfrom
smsunarto:scott/fix-cursor-reasoning-levels
Sep 3, 2026
Merged

SawyerHood merged 2 commits into
get-bb:mainfrom
smsunarto:scott/fix-cursor-reasoning-levels

Conversation

@smsunarto

Copy link
Copy Markdown
Contributor

Human comments

What was wrong

Cursor probed ACP models sequentially within five seconds and prioritized Grok. Later models, including Gemini 3.8 Flash, therefore kept a synthetic Medium-only reasoning choice even though Cursor listed their real variants.

What changed

  • Read Cursor model and reasoning metadata from cursor-agent --list-models.
  • Normalize CLI variant families to the bare model IDs required by Cursor ACP sessions.
  • Merge legacy fixed-effort families into their current parameterized models.
  • Bump HOST_DAEMON_PROTOCOL_VERSION from 177 to 178 because the Cursor launch specification now sends the model-list command to the host daemon.

How you verified

  • pnpm exec turbo run test --filter=@bb/provider-bridge-acp --filter=bb-plugin-provider-acp --filter=@bb/host-daemon-contract --force — 443 tests passed.
  • pnpm exec turbo run typecheck --filter=@bb/provider-bridge-acp --filter=bb-plugin-provider-acp --filter=@bb/host-daemon-contract --force — six tasks passed.
  • Cursor CLI 2026.08.31 live catalog mapped Gemini 3.8 Flash to Low, Medium, and High while preserving model id gemini-3.8-flash.

Fixes #2503

AGENT GENERATED

@SawyerHood

Copy link
Copy Markdown
Collaborator

@slopcop review

@bb-slop-cop

bb-slop-cop Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

🚨 SLOP COP 🚨 · review

I am reviewing this pull request now. I will check security, code quality, performance, architecture, tests, and the user workflow.

command: "cursor-agent",
args: ["acp"],
env: {},
modelCli: {

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 — Keep ACP discovery when the CLI model list fails.

This modelCli setting makes the CLI list and ACP discovery mutually exclusive. buildAcpModelDiscoveryAgentCommand now omits the ACP agent. If cursor-agent --list-models fails for a transient reason, or its output becomes invalid, handleModelList cannot use ACP discovery. It returns only acp-default, although the old path could still discover Cursor models. Please keep the ACP agent command with the list command. Then use ACP discovery when the CLI catalog is null. Please add a test for this fallback.

@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

This PR makes Cursor show one model with its available reasoning levels. It also keeps a valid reasoning choice after a model switch.

I found one medium-priority issue. The new CLI model list removes the existing ACP discovery fallback. A temporary CLI failure can leave Cursor with only the default model. I left a line comment with the failure path and a proposed fix.

I found no security or performance issues. The new code uses the existing model-family and reasoning functions. I found no duplicate implementation that needs a refactor.

The focused test run passed 4,164 tests. It skipped four tests. All seven focused typecheck tasks passed. The browser test loaded the model picker and selected Cursor. Cursor then required authentication, so I could not inspect the live reasoning ladder.

@SawyerHood
SawyerHood merged commit 594b3db into get-bb:main Sep 3, 2026
13 checks passed
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.

0.40.0 Cursor picker: only Grok keeps a real reasoning ladder (Sol/Opus/Fable dummy Medium)

2 participants