Roo-Code/webview-ui/src/components
Roo Code 4c32fdae55 fix: refresh provider settings on profile switch in Settings view
When switching Configuration Profiles within the Settings/Providers tab,
provider settings were not refreshing because:

1. The cachedState update happened asynchronously (useEffect) after the
   render cycle, causing child components to mount with stale config
2. ApiOptions and provider components retained local state from the
   previous profile since they were not remounted

Three fixes applied:
- Changed profile-switch useEffect to synchronous render-time state
  update (React "adjusting state when a prop changes" pattern)
- Added key={currentApiConfigName} on ApiOptions to force full remount
  on profile switch, resetting all local state in provider components
- Added sync effects and write-back guards in OpenAICompatible.tsx to
  prevent stale header overwrites

Closes #11450
2026-02-13 15:29:12 +00:00
..
__tests__ Move @roo-code/cloud to the Roo-Code repo (#7503) 2025-08-28 11:18:45 -07:00
chat fix: cancel backend auto-approval timeout when auto-approve is toggled off mid-countdown (#11439) 2026-02-12 10:38:11 -05:00
cloud Move more types to @roo-code/types (for the cli) (#10583) 2026-01-09 11:59:06 -08:00
common fix: resolve chat scroll anchoring and task-switch scroll race condit… (#11385) 2026-02-10 16:40:13 -07:00
history feat: rename search_and_replace tool to edit and unify edit-family UI (#11296) 2026-02-10 17:32:35 -07:00
marketplace ux: UI improvements to search settings (#10633) 2026-01-12 06:59:49 -05:00
mcp refactor: replace fetch_instructions with skill tool and built-in skills (#11084) 2026-01-29 12:47:36 -07:00
modes refactor: remove footgun prompting (file-based system prompt override) (#11387) 2026-02-10 18:32:01 -07:00
settings fix: refresh provider settings on profile switch in Settings view 2026-02-13 15:29:12 +00:00
ui refactor: remove built-in skills and built-in skills mechanism (#11414) 2026-02-11 14:32:57 -07:00
welcome feat: allow import settings in initial welcome screen (#10994) 2026-01-30 20:55:13 -05:00
worktrees fix: use --force by default when deleting worktrees (#10986) 2026-01-26 23:10:23 -05:00
ErrorBoundary.tsx Remove duplicated assignment (#6355) 2025-07-29 10:54:44 -04:00