diff --git a/crates/agent_ui/src/acp/thread_view.rs b/crates/agent_ui/src/acp/thread_view.rs index 441b4aa06fdad65fce079ea36dc3d2e59cf4644f..a8a1c79269d2710184bee9b57c1face3adc34282 100644 --- a/crates/agent_ui/src/acp/thread_view.rs +++ b/crates/agent_ui/src/acp/thread_view.rs @@ -29,7 +29,7 @@ use gpui::{ }; use language::Buffer; -use language_model::LanguageModelRegistry; +use language_model::{ANTHROPIC_PROVIDER_ID, LanguageModelRegistry}; use markdown::{HeadingLevelStyles, Markdown, MarkdownElement, MarkdownStyle}; use project::{Project, ProjectEntryId}; use prompt_store::{PromptId, PromptStore}; @@ -672,7 +672,9 @@ impl AcpThreadView { cx: &mut App, ) { let agent_name = agent.name(); - let (configuration_view, subscription) = if let Some(provider_id) = err.provider_id { + let (configuration_view, subscription) = if let Some(provider_id) = err.provider_id + && provider_id != ANTHROPIC_PROVIDER_ID + { let registry = LanguageModelRegistry::global(cx); let sub = window.subscribe(®istry, cx, {