Repository navigation
Conversation
| webSearchStore?: IWebSearchProviderStore; | ||
| tenantWebSearchEnabled?: boolean; | ||
| tenantMemoryEnabled?: boolean; | ||
| tenantAutoEnabled?: boolean; |
There was a problem hiding this comment.
🟡 Low: Code Quality Violation
Prop name 'tenantAutoEnabled' is not prefixed with `is` or `has` (...read more)
Enforces a consistent naming pattern for boolean props to ensure that the variable is prefixed with either is or has (or the uppercase equivalent). Any prefix symbol (_, $, etc) is allowed.
Helpful? 👍/👎
🚩 Report as false positive. Flags the rule for review to improve detection accuracy.
| undefined; | ||
| let resolveConfiguration: (value: { | ||
| webSearch: { enabled: boolean }; | ||
| memory: { enabled: boolean }; |
There was a problem hiding this comment.
🟡 Low: Code Quality Violation
Prop name 'enabled' is not prefixed with `is` or `has` (...read more)
Enforces a consistent naming pattern for boolean props to ensure that the variable is prefixed with either is or has (or the uppercase equivalent). Any prefix symbol (_, $, etc) is allowed.
Helpful? 👍/👎
🚩 Report as false positive. Flags the rule for review to improve detection accuracy.
| configuration, | ||
| }: { | ||
| auto: { enabled: boolean } | undefined; | ||
| manageProviders?: boolean; |
There was a problem hiding this comment.
🟡 Low: Code Quality Violation
Prop name 'manageProviders' is not prefixed with `is` or `has` (...read more)
Enforces a consistent naming pattern for boolean props to ensure that the variable is prefixed with either is or has (or the uppercase equivalent). Any prefix symbol (_, $, etc) is allowed.
Helpful? 👍/👎
🚩 Report as false positive. Flags the rule for review to improve detection accuracy.
| manageProviders = true, | ||
| configuration, | ||
| }: { | ||
| auto: { enabled: boolean } | undefined; |
There was a problem hiding this comment.
🟡 Low: Code Quality Violation
Prop name 'enabled' is not prefixed with `is` or `has` (...read more)
Enforces a consistent naming pattern for boolean props to ensure that the variable is prefixed with either is or has (or the uppercase equivalent). Any prefix symbol (_, $, etc) is allowed.
Helpful? 👍/👎
🚩 Report as false positive. Flags the rule for review to improve detection accuracy.
| let resolveConfiguration: (value: { webSearch: { enabled: boolean }; memory: { enabled: boolean } }) => void = () => | ||
| undefined; | ||
| let resolveConfiguration: (value: { | ||
| webSearch: { enabled: boolean }; |
There was a problem hiding this comment.
🟡 Low: Code Quality Violation
Prop name 'enabled' is not prefixed with `is` or `has` (...read more)
Enforces a consistent naming pattern for boolean props to ensure that the variable is prefixed with either is or has (or the uppercase equivalent). Any prefix symbol (_, $, etc) is allowed.
Helpful? 👍/👎
🚩 Report as false positive. Flags the rule for review to improve detection accuracy.
| let resolveConfiguration: (value: { webSearch: { enabled: boolean }; memory: { enabled: boolean } }) => void = () => | ||
| undefined; | ||
| let resolveConfiguration: (value: { | ||
| webSearch: { enabled: boolean }; |
There was a problem hiding this comment.
🟡 Low: Code Quality Violation
Prop name 'enabled' is not prefixed with `is` or `has` (...read more)
Enforces a consistent naming pattern for boolean props to ensure that the variable is prefixed with either is or has (or the uppercase equivalent). Any prefix symbol (_, $, etc) is allowed.
Helpful? 👍/👎
🚩 Report as false positive. Flags the rule for review to improve detection accuracy.
| undefined; | ||
| let resolveConfiguration: (value: { | ||
| webSearch: { enabled: boolean }; | ||
| memory: { enabled: boolean }; |
There was a problem hiding this comment.
🟡 Low: Code Quality Violation
Prop name 'enabled' is not prefixed with `is` or `has` (...read more)
Enforces a consistent naming pattern for boolean props to ensure that the variable is prefixed with either is or has (or the uppercase equivalent). Any prefix symbol (_, $, etc) is allowed.
Helpful? 👍/👎
🚩 Report as false positive. Flags the rule for review to improve detection accuracy.
| configurationStore: IConfigurationStore; | ||
| logger: Logger; | ||
| }): Promise<boolean> { | ||
| }): Promise<{ enabled: boolean; reason?: string } | undefined> { |
There was a problem hiding this comment.
🟡 Low: Code Quality Violation
Prop name 'enabled' is not prefixed with `is` or `has` (...read more)
Enforces a consistent naming pattern for boolean props to ensure that the variable is prefixed with either is or has (or the uppercase equivalent). Any prefix symbol (_, $, etc) is allowed.
Helpful? 👍/👎
🚩 Report as false positive. Flags the rule for review to improve detection accuracy.
| let resolveConfiguration: (value: { | ||
| webSearch: { enabled: boolean }; | ||
| memory: { enabled: boolean }; | ||
| auto: { enabled: boolean }; |
There was a problem hiding this comment.
🟡 Low: Code Quality Violation
Prop name 'enabled' is not prefixed with `is` or `has` (...read more)
Enforces a consistent naming pattern for boolean props to ensure that the variable is prefixed with either is or has (or the uppercase equivalent). Any prefix symbol (_, $, etc) is allowed.
Helpful? 👍/👎
🚩 Report as false positive. Flags the rule for review to improve detection accuracy.
|
5bf4136 to
2efa923
Compare
ce9361e to
d9c7391
Compare
Turning it off turns off all model routing for the tenant: Auto leaves the picker, auto specs are rejected, chats using Auto fail their next turn with a clear error, and subagents run on their parent model. Capabilities leave auto out when routing isn't set up and give a reason when it is unavailable. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
d9c7391 to
7fc6d90
Compare
Summary
Closes AGE-2854 (the on/off switch only; decision model settings are not part of this PR)
Stacked on #1444 (Auto capability and the model picker), so this diff shows only the tenant switch.
Changes
auto: { enabled }switch, on by default, editable throughPATCH /api/v1/settings/configurationlike web search and memory. No migration: a stored row without it is filled with the default on read.autospecs are rejected (422), chats that already use Auto fail their next turn with "Auto mode is turned off for this tenant", and subagents run on their parent's model.GET /api/v1/capabilitiesleavesautoout when model routing isn't set up for the tenant, and gives areasonwhen Auto is unavailable (switched off, or no model in some category). The picker shows that reason.manage_providersfalse). The new-chat "open settings when there are no models" check now usesmanageProviders.ModelSettings.tsxis mostly re-indentation from wrapping the provider panel in a condition; hide whitespace to review it (25 lines of real change).How was this tested?
auto, capabilities (no routing, switched off, no models), spec validation with the switch off, store contract seeding ofauto, the Models page switch, and the picker's disabled Auto option with its reason.configurationStore.Checklist
pnpm build,pnpm test,pnpm typecheck,pnpm lint:ci, andpnpm format:checkpass locallypackages/trueforge-sdk,python/trueforge_sdk,.github/fern/openapi/openapi.json,docs/openapi.json) — fork PRs omit SDK regen; maintainers regenerate after merge.env.exampleupdated if configuration or behavior changed