Fix loading agent server settings (#34662)

Release Notes:

- N/A
This commit is contained in:
Agus Zubiaga 2025-07-21 11:26:00 -03:00 committed by GitHub
parent 405244d422
commit cc56196152
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,9 +29,12 @@ impl settings::Settings for AllAgentServersSettings {
fn load(sources: SettingsSources<Self::FileContent>, _: &mut App) -> Result<Self> {
let mut settings = AllAgentServersSettings::default();
for value in sources.defaults_and_customizations() {
if value.gemini.is_some() {
settings.gemini = value.gemini.clone();
for AllAgentServersSettings { gemini, claude } in sources.defaults_and_customizations() {
if gemini.is_some() {
settings.gemini = gemini.clone();
}
if claude.is_some() {
settings.claude = claude.clone();
}
}