Repository navigation
Fix Cursor reasoning ladders for every model - #2960
Conversation
|
@slopcop review |
|
🚨 SLOP COP 🚨 · 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: { |
There was a problem hiding this comment.
🚨 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.
There was a problem hiding this comment.
🚨 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.
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
cursor-agent --list-models.HOST_DAEMON_PROTOCOL_VERSIONfrom 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.gemini-3.8-flash.Fixes #2503