Skip to content

fix: add auto availability to settings under capabilities - #1571

Open
heerambavi1998 wants to merge 7 commits into
mainfrom
ha/settings
Open

heerambavi1998 wants to merge 7 commits into
mainfrom
ha/settings

Conversation

@heerambavi1998

@heerambavi1998 heerambavi1998 commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

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 auto to auto_model_routing everywhere (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_routing section 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 if model_providers management is off.

Introduces an AutoAvailablePrompt in 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 and localStorage so dismissal sticks.

Reviewed by Cursor Bugbot for commit f055a6e. Bugbot is set up for automated code reviews on this repo. Configure here.

@veria-ai

veria-ai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

PR overview

No security issues were found in this pull request.

Reviews

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ 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' }));

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)
Fix in Cursor Fix in Web

Triggered by project rule: TrueForge review rules

Reviewed by Cursor Bugbot for commit f055a6e. Configure here.

This branch has not been deployed

No deployments
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.

2 participants