Roo-Code/webview-ui/src
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 more types to @roo-code/types (for the cli) (#10583) 2026-01-09 11:59:06 -08:00
components fix: refresh provider settings on profile switch in Settings view 2026-02-13 15:29:12 +00:00
context refactor: remove browser use functionality entirely (#11392) 2026-02-11 18:11:21 -07:00
hooks refactor: remove browser use functionality entirely (#11392) 2026-02-11 18:11:21 -07:00
i18n refactor: remove browser use functionality entirely (#11392) 2026-02-11 18:11:21 -07:00
lib Add shadcn/ui + Storybook 2025-01-30 12:50:09 -08:00
oauth Remove Glama provider (#9801) 2025-12-10 14:08:29 -08:00
utils Pr 11144 (#11315) 2026-02-09 14:11:12 -07:00
vite-plugins fix: prevent empty mode names from being saved (fixes #5766) (#5767) 2025-08-04 11:03:34 -07:00
App.tsx ux: improve worktree selector and creation UX (#10940) 2026-01-24 22:06:37 +00:00
index.css Revert "feat: add task header highlight for visual status indication" (#11349) 2026-02-09 15:29:10 -07:00
index.tsx PNPM + Turbo monorepo + Nightly releases (#3407) 2025-05-21 21:01:20 -07:00
preflight.css Bring most of Tailwind's preflight.css back 2025-02-03 12:18:28 -08:00
types.d.ts Welcome page OAuth (#1913) 2025-03-23 10:08:16 -04:00
vite-env.d.ts Remove lucide 2025-01-30 14:47:59 -08:00