Roo-Code/webview-ui/src
Daniel bfdd158129
Fix: Enable save button for provider dropdown and checkbox changes (#7113)
* fix: enable save button for provider dropdown and checkbox changes

The save button wasn't enabling when users changed provider settings like
dropdowns and checkboxes because setApiConfigurationField was treating all
changes from undefined to a defined value as 'initial sync' and not marking
the form as dirty.

Added an optional isUserAction parameter (defaults to true) to distinguish:
- User actions (should enable save button) - the default
- Automatic initialization (shouldn't enable save button) - pass false

This fixes the issue where changing provider dropdowns, checkboxes with
default values, and other settings wouldn't enable the save button.

* fix: remove incorrect isUserAction=false from apiModelId sync

The useEffect that syncs apiModelId with selectedModelId was incorrectly
passing isUserAction=false, which prevented the save button from enabling
when users selected a different model. Since this effect responds to all
selectedModelId changes (including user selections), it should use the
default isUserAction=true behavior.

* test: fix ThinkingBudget test to expect isUserAction parameter

The test now correctly expects setApiConfigurationField to be called
with three arguments including the isUserAction=false parameter for
automatic thinking token adjustments.
2025-08-14 19:48:25 -04:00
..
__tests__ Redesigned Task Header (#6561) 2025-08-05 06:26:25 -07:00
components Fix: Enable save button for provider dropdown and checkbox changes (#7113) 2025-08-14 19:48:25 -04:00
context Fix webview in dev mode (#7044) 2025-08-13 01:40:00 -07:00
hooks feat: add ESC key handling for modes, API provider, and indexing settings popovers (#6175) 2025-07-28 23:04:23 -04:00
i18n Add Sonnet 1M context checkbox (#7032) 2025-08-12 22:51:30 -04:00
lib Add shadcn/ui + Storybook 2025-01-30 12:50:09 -08:00
oauth Add a new @roo-code/types package and use it everywhere (#3912) 2025-05-26 12:06:45 -07:00
utils Fix webview in dev mode (#7044) 2025-08-13 01:40:00 -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 debug: Add ErrorBoundary component for better error handling (#5085) 2025-07-23 08:45:35 -04:00
index.css feature: add toggle for disable mcp server tool from prompt (#3551) 2025-06-20 19:14:59 -04: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