Repository navigation
Conversation
GET /api/v1/capabilities reports auto.enabled when model routing is on for the tenant and the user has a model in every routing cluster. The picker offers Auto, selectable only when that capability is enabled. Co-authored-by: Cursor <cursoragent@cursor.com>
| pinned, | ||
| onEdit, | ||
| }: { | ||
| editing: boolean; |
There was a problem hiding this comment.
🟡 Low: Code Quality Violation
Prop name 'editing' 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.
| skills: AgentSkill[]; | ||
| connectors: ConnectorState[]; | ||
| skillsEnabled: boolean | undefined; | ||
| keepAutoModel: boolean; |
There was a problem hiding this comment.
🟡 Low: Code Quality Violation
Prop name 'keepAutoModel' 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.
| } | ||
|
|
||
| export type DraftAutoModelOption = { | ||
| 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.
| * Whether Auto mode can be selected in the model picker. Enabled when model routing is on and the user has a model | ||
| * in every routing cluster; absent means Auto mode cannot be selected. | ||
| */ | ||
| 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.
| }: { | ||
| editing: boolean; | ||
| /** Otherwise revealed on row hover or focus (always visible below md, where hover is unreliable). */ | ||
| pinned: boolean; |
There was a problem hiding this comment.
🟡 Low: Code Quality Violation
Prop name 'pinned' 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.
|
Summary
Part of AGE-2853
Stacked on #1443 (auto model selection for the root thread), so this diff shows only the capability and the UI.
Changes
GET /api/v1/capabilitiesreportsauto.enabled: true when model routing is on for the tenant and the user has a model in every routing category. Core addscanRouteEveryCategory.auto.enabledis true; otherwise it shows "Auto mode is not available for now".listRoutableModelsis shared by turn routing and the capability check.AutoCapabilitytype.How was this tested?
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