Skip to content

feat: add "Use the same configuration for all modes" checkbox to Settings#12238

Draft
roomote-v0[bot] wants to merge 1 commit intomainfrom
feature/lock-api-config-settings-checkbox
Draft

feat: add "Use the same configuration for all modes" checkbox to Settings#12238
roomote-v0[bot] wants to merge 1 commit intomainfrom
feature/lock-api-config-settings-checkbox

Conversation

@roomote-v0
Copy link
Copy Markdown
Contributor

@roomote-v0 roomote-v0 Bot commented Apr 30, 2026

This PR attempts to address Issue #12237. Feedback and guidance are welcome.

Problem

The "lock API configuration across modes" feature exists but is nearly impossible to discover. It is hidden behind a small lock icon inside the API Configuration popover -- users must click the configuration profile name in the chat input area, then look at the tiny icons in the bottom-left corner of the popover that appears.

Solution

Adds a clearly visible "Use the same configuration for all modes" checkbox directly in the Providers tab of the Settings view, between the Configuration Profile selector and the API Provider options.

When enabled, switching modes (e.g. Code, Architect, Ask) keeps the current API configuration instead of switching to a mode-specific one.

Changes

  • SettingsView.tsx: Added Checkbox from vscrui, reads lockApiConfigAcrossModes from cachedState, persists via postMessage on save
  • settings.json (all 18 locales): Added lockApiConfigAcrossModes and lockApiConfigAcrossModesDescription i18n keys
  • SettingsView.spec.tsx: Added vscrui mock and 2 test cases (renders unchecked by default, toggles and sends message on save)

The existing lock icon in the API Configuration popover continues to work as before -- this adds a second, more discoverable path to the same setting.

Test plan

  • All 18 existing SettingsView tests pass
  • All 5 existing ChatTextArea.lockApiConfig tests pass
  • 2 new tests added and passing

Interactively review PR in Roo Code Cloud

Adds a discoverable "Use the same configuration for all modes" checkbox
to the Providers section in Settings. This mirrors the existing lock
icon hidden inside the API Configuration popover, making it much easier
to find.

- Checkbox in Providers tab reads from cachedState and persists on save
- i18n strings added for all 18 locales
- Tests added for render and toggle+save behavior

Addresses #12237
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