Skip to content

Auto capability and Auto in the model picker - #1444

Draft
hary73 wants to merge 1 commit into
hary/root-autofrom
hary/auto-capability
Draft

hary73 wants to merge 1 commit into
hary/root-autofrom
hary/auto-capability

Conversation

@hary73

@hary73 hary73 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

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/capabilities reports auto.enabled: true when model routing is on for the tenant and the user has a model in every routing category. Core adds canRouteEveryCategory.
  • The new-chat model picker offers Auto. It's only selectable when auto.enabled is true; otherwise it shows "Auto mode is not available for now".
  • The reasoning-effort control moves into a menu that lists the selected model's supported efforts.
  • listRoutableModels is shared by turn routing and the capability check.
  • OpenAPI documents and the TypeScript and Python SDKs are regenerated for the new AutoCapability type.

How was this tested?

  • Unit tests for the capabilities API and the draft model picker components.
  • Manually in the local UI against devtest.

Checklist

  • I have read the contributing guidelines
  • pnpm build, pnpm test, pnpm typecheck, pnpm lint:ci, and pnpm format:check pass locally
  • Tests added/updated where it makes sense
  • No hand-edits to generated code (packages/trueforge-sdk, python/trueforge_sdk, .github/fern/openapi/openapi.json, docs/openapi.json) — fork PRs omit SDK regen; maintainers regenerate after merge
  • Docs / .env.example updated if configuration or behavior changed

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;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 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? 👍/👎 View in Datadog  Leave us feedback  Documentation
🚩 Report as false positive. Flags the rule for review to improve detection accuracy.

skills: AgentSkill[];
connectors: ConnectorState[];
skillsEnabled: boolean | undefined;
keepAutoModel: boolean;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 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? 👍/👎 View in Datadog  Leave us feedback  Documentation
🚩 Report as false positive. Flags the rule for review to improve detection accuracy.

}

export type DraftAutoModelOption = {
enabled: boolean;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 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? 👍/👎 View in Datadog  Leave us feedback  Documentation
🚩 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 };

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 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? 👍/👎 View in Datadog  Leave us feedback  Documentation
🚩 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;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 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? 👍/👎 View in Datadog  Leave us feedback  Documentation
🚩 Report as false positive. Flags the rule for review to improve detection accuracy.

@datadog-official

Copy link
Copy Markdown

Code Quality  Code Vulnerabilities  IaC  Library Vulnerabilities  Secrets

⚠️ Warnings

🛠️ 5 Code quality issues detected

Low: typescript-best-practices/boolean-prop-naming Consistent naming for boolean props View rule
packages/trueforge-ui/src/atoms/draft/DraftModelCatalogPanel.tsx:73
Low: typescript-best-practices/boolean-prop-naming Consistent naming for boolean props View rule
packages/trueforge-ui/src/atoms/draft/DraftSpecPreferenceBridge.tsx:85
Low: typescript-best-practices/boolean-prop-naming Consistent naming for boolean props View rule
packages/trueforge-ui/src/atoms/draft/DraftModelCatalogPanel.tsx:57
View all

ℹ️ Info

No other issues found (see more)

🛡️ No new code vulnerabilities
📚 No new vulnerable libraries detected
🧱 No new Infrastructure as Code (IaC) issues
🔑 No new secrets detected

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 5bf4136 | Docs | Give us feedback!

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.

1 participant