mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
fix: enable Save button when changing OpenRouter provider routing
- Modified setApiConfigurationField to exclude openRouterSpecificProvider from initial sync logic - This ensures changes to the provider routing setting properly trigger the Save button - Fixes #6655
This commit is contained in:
parent
2882d99ea8
commit
7e4a87b709
1 changed files with 3 additions and 1 deletions
|
|
@ -229,7 +229,9 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone, t
|
|||
|
||||
// Don't treat initial sync from undefined to a defined value as a user change
|
||||
// This prevents the dirty state when the component initializes and auto-syncs the model ID
|
||||
const isInitialSync = previousValue === undefined && value !== undefined
|
||||
// Exception: openRouterSpecificProvider should always trigger change detection
|
||||
const isInitialSync =
|
||||
previousValue === undefined && value !== undefined && field !== "openRouterSpecificProvider"
|
||||
|
||||
if (!isInitialSync) {
|
||||
setChangeDetected(true)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue