diff --git a/crates/op-host-native/src/widget_host/agent_settings_tests.rs b/crates/op-host-native/src/widget_host/agent_settings_tests.rs index 8420f939..020ae41e 100644 --- a/crates/op-host-native/src/widget_host/agent_settings_tests.rs +++ b/crates/op-host-native/src/widget_host/agent_settings_tests.rs @@ -760,7 +760,7 @@ fn image_search_oauth_focus_accepts_text_and_commits() { } #[test] -fn image_search_test_updates_ready_status_from_oauth_completeness() { +fn image_search_test_keeps_search_ready_when_oauth_is_incomplete() { let mut host = WidgetHostNative::new(); host.editor_state_mut().editor_ui.agent_settings.tab = AgentSettingsTab::Images; host.editor_state_mut() @@ -781,8 +781,7 @@ fn image_search_test_updates_ready_status_from_oauth_completeness() { assert!(host.dispatch_agent_settings_press(x, y, 1200.0, 800.0)); assert!( - !host - .editor_state() + host.editor_state() .editor_ui .agent_settings .images_search_ready diff --git a/crates/op-host-native/src/widget_host/press_helpers.rs b/crates/op-host-native/src/widget_host/press_helpers.rs index d4b5526b..fc7f3ac4 100644 --- a/crates/op-host-native/src/widget_host/press_helpers.rs +++ b/crates/op-host-native/src/widget_host/press_helpers.rs @@ -127,8 +127,7 @@ impl WidgetHostNative { AgentSettingsHit::TestImageSearch => { self.commit_settings_focus_if_any(); let settings = &mut self.editor_state.editor_ui.agent_settings; - settings.images_search_ready = !settings.openverse_client_id.trim().is_empty() - && !settings.openverse_client_secret.trim().is_empty(); + settings.images_search_ready = true; } AgentSettingsHit::SetActiveGenConfig(index) => { self.commit_settings_focus_if_any();