Skip to content

feat(settings): link to default model roles - #491

Open
andrebrait wants to merge 1 commit into
mainfrom
feat/default-model-link
Open

andrebrait wants to merge 1 commit into
mainfrom
feat/default-model-link

Conversation

@andrebrait

@andrebrait andrebrait commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

Adds a direct link from AI Model Defaults to OMP Model Roles and makes it discoverable through settings search.

Summary by CodeRabbit

  • New Features
    • Settings → AI Model Defaults now links directly to OMP Model Roles, where you can select a default AI model.
    • Search settings for “Default AI Model” to find the option and open OMP settings.
  • Bug Fixes
    • Opening OMP settings from the Models tab now displays the default model override control.

@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Settings adds a Default AI Model setting that opens Providers in the model roles view. The change also adds search indexing, localized text, a browser test, and a changelog entry.

Changes: Default AI Model Navigation

Layer / File(s) Summary
Navigate from settings to model roles
components/ModelsConfig.tsx, components/SettingsConfig.tsx, lib/i18n/locales/en.json, lib/i18n/locales/zh-TW.json, components/SettingsConfig.browser-transport.test.mjs, CHANGELOG.md
ModelsConfig accepts initialModelRoles and selects the system subtab, roles tab, and roles view when it is true. SettingsConfig adds the Default AI Model search entry and setting button, passes the flag to ModelsConfig, and clears the flag on ordinary tab or search-result selection. Locale strings, a browser test, and a changelog entry support the setting and navigation.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  actor User
  participant SettingsConfig
  participant ModelsConfig
  User->>SettingsConfig: Select Default AI Model
  SettingsConfig->>ModelsConfig: Pass initialModelRoles
  ModelsConfig->>ModelsConfig: Initialize system subtab, roles tab, and roles selection
Loading

Suggested reviewers: kahme247, gtanger

Merge Risk: Minimal · up to eea87

This adds a shortcut from Default AI Model settings to OMP Model Roles, plus search indexing and localized labels. It is a small, reversible UI navigation change and no merge-blocking risk was found.

Security architecture risk: Minimal · up to eea87

The shortcut opens existing settings. It does not itself save configuration or grant additional access, and no material security or ownership risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "feat(settings): link to default model roles" matches the main change. The PR adds a direct link from Settings AI Model Defaults to OMP Model Roles, and the summary shows the new settings se…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "feat(settings): link to default model roles" matches the main change. The PR adds a direct link from Settings AI Model Defaults to OMP Model Roles, and the summary shows the new settings search entry, the initialModelRoles prop, and the locale strings that support this link. The title is short, specific, and follows conventional commit style.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0103b81a-ba2b-415f-bcd6-efc0e19dbbad
Commits

Reviewing files that changed from the base of the PR and between 5bb4fd2 and eea8712.

Files selected for processing: 6

  • CHANGELOG.md
  • components/ModelsConfig.tsx
  • components/SettingsConfig.browser-transport.test.mjs
  • components/SettingsConfig.tsx
  • lib/i18n/locales/en.json
  • lib/i18n/locales/zh-TW.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.

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