APP-443: Fix key generation (#12726)

Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: tofarr <tofarr@gmail.com>
This commit is contained in:
chuckbutkus
2026-02-03 12:50:40 -05:00
committed by GitHub
parent ce04e70b5b
commit 0e825c38d7
7 changed files with 537 additions and 102 deletions

View File

@@ -114,10 +114,8 @@ async def reset_settings() -> JSONResponse:
async def store_llm_settings(
settings: Settings, settings_store: SettingsStore
settings: Settings, existing_settings: Settings
) -> Settings:
existing_settings = await settings_store.load()
# Convert to Settings model and merge with existing settings
if existing_settings:
# Keep existing LLM settings if not provided
@@ -156,7 +154,7 @@ async def store_settings(
# Convert to Settings model and merge with existing settings
if existing_settings:
settings = await store_llm_settings(settings, settings_store)
settings = await store_llm_settings(settings, existing_settings)
# Keep existing analytics consent if not provided
if settings.user_consents_to_analytics is None: