Repository navigation
fix: add auto availability to settings under capabilities - #1571
heerambavi1998 wants to merge 7 commits into
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit f055a6e. Configure here.
| // Models opens for provider management, or for the Auto switch when the caller may change it. | ||
| const modelsOpen = | ||
| isSettingsSectionEnabled({ settings, section: 'modelProviders' }) || | ||
| (hasAutoModelRouting && isSettingsSectionEnabled({ settings, section: 'autoModelRouting' })); |
There was a problem hiding this comment.
Auto settings omitted from chrome gate
Medium Severity
autoModelRouting can now independently open the Models tab and the admin prompt, but SETTINGS_SECTIONS in serverChrome.ts still omits it. hasAnySettingsSectionEnabled and isSettingsChromeEnabled therefore treat Auto-only access as no Settings at all. setSettingsOpen no-ops in that case, and Configure on the prompt still dismisses it permanently, so the admin loses the nudge and never reaches the switch.
Additional Locations (1)
Triggered by project rule: TrueForge review rules
Reviewed by Cursor Bugbot for commit f055a6e. Configure here.


This flag tells whether setting up auto model routing is available under settings to the user or not.
Also rename the capability
Note
Medium Risk
Renames a public API field (
auto→auto_model_routing), which is breaking for any client not updated in lockstep; settings visibility and admin-only prompts also change who sees Auto configuration.Overview
Renames the capabilities field from
autotoauto_model_routingeverywhere (OpenAPI, TS/Python SDKs, runtime types, and UI consumers) so Auto model routing is named consistently on the wire and in clients.Adds a new
settings.auto_model_routingsection on the capabilities API so hosts can say whether the caller may open Auto configuration (typically tenant admins when routing is set up). The UI uses this to gate the Auto switch in Models settings and to decide when the Models tab should appear even ifmodel_providersmanagement is off.Introduces an
AutoAvailablePromptin the shell: when routing is configured but Auto is disabled, eligible admins see a dismissible bottom-right nudge with Set up Auto → Models settings, plus analytics events andlocalStorageso dismissal sticks.Reviewed by Cursor Bugbot for commit f055a6e. Bugbot is set up for automated code reviews on this repo. Configure here.