fix(server): surface Cursor Auto Optimize For modes - #9587
Open
Gust4Oliveira wants to merge 1 commit into
Open
Conversation
Map ACP optimize_for into model optionDescriptors so Auto exposes Cost, Balance, and Intelligence, and apply the selection on session config updates. Co-authored-by: Cursor <cursoragent@cursor.com>
Gust4Oliveira
marked this pull request as ready for review
September 4, 2026 04:26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Changed
Cursor Auto (
auto-smart) now surfaces ACPoptimize_foras a model option descriptor (optimizeFor) with Cost, Balance, and Intelligence, and writes the selection back throughsession/set_config_option.Server mapping + tests in
CursorProvider; Settings capability labels also recognizeoptimizeFor.Before
Cursor's Auto

Claude Fable 5.1

After
Cursor's Auto

Why
Server mapping + tests in
CursorProvider; Settings capability labels also recognizeoptimizeFor.Why
Live Cursor ACP advertises Optimize For on Auto with three modes — Intelligence (
intelligence), Balance (balanced, default), and Cost (cost) — but T3 only mapped effort/reasoning-style options and whitelisted reasoning values. Thoseoptimize_foroptions were dropped, so Auto had no Traits control and none of Intelligence / Balance / Cost could be selected or applied.Cursor heavily subsidizes inference on Auto at the Cost tier. Without that mode in T3 Code, users can only take full advantage of that subsidized Auto usage inside Cursor’s own apps — not through T3. This keeps contracts/UI generic and fixes discovery + write-back at the Cursor adapter boundary.
UI Changes
Traits on Cursor Auto now show Optimize For (Intelligence / Balance / Cost). Settings model list treats
optimizeForlike other select capabilities.Checklist
Note
Add
optimizeForselect capability for Cursor Router Auto model configisCursorOptimizeForConfigOptionandfindCursorOptimizeForConfigOptionto detect and locate the Optimize For select option within Cursormodel_configentriesbuildCursorCapabilitiesFromConfigOptionsnow emits an Optimize For select descriptor (with current value as default) placed before reasoning, context, and boolean descriptorsresolveCursorAcpConfigUpdatestranslates anoptimizeForprovider selection into a Cursor ACP config update using the original backend identifier and valuedescribeModelCapabilitiesin ProviderModelsSection.tsx now shows the Reasoning label for models exposing anoptimizeForselectMacroscope summarized d8dabdc.
Note
Low Risk
Scoped Cursor adapter mapping and a settings label tweak; no auth, billing, or broad API changes.
Overview
Cursor Router Auto (
auto-smart) now maps ACPoptimize_forinto a genericoptimizeForselect so Traits can show Intelligence, Balance, and Cost (default Balance).CursorProviderdiscoversmodel_configoptimize options, builds the capability descriptor from ACP select values, and writes user picks back asoptimize_forviaresolveCursorAcpConfigUpdates. Tests cover Auto Smart fixture capability derivation and Cost selection write-back.Settings model list capability hints treat
optimizeForlike other reasoning-style selects so Auto shows the expected trait label.Reviewed by Cursor Bugbot for commit d8dabdc. Bugbot is set up for automated code reviews on this repo. Configure here.