diff --git a/webview-ui/src/components/chat/ChatView.tsx b/webview-ui/src/components/chat/ChatView.tsx index 9a1d712be1..0045ab38c7 100644 --- a/webview-ui/src/components/chat/ChatView.tsx +++ b/webview-ui/src/components/chat/ChatView.tsx @@ -13,6 +13,7 @@ import { appendImages } from "@src/utils/imageUtils" import { getCostBreakdownIfNeeded } from "@src/utils/costFormatting" import type { ClineAsk, ClineSayTool, ClineMessage, ExtensionMessage, AudioType } from "@roo-code/types" +import { isRetiredProvider } from "@roo-code/types" import { findLast } from "@roo/array" import { SuggestionItem } from "@roo-code/types" @@ -226,6 +227,11 @@ const ChatViewComponent: React.ForwardRefRenderFunction !!apiConfiguration?.apiProvider && isRetiredProvider(apiConfiguration.apiProvider), + [apiConfiguration?.apiProvider], + ) + // UI layout depends on the last 2 messages (since it relies on the content // of these messages, we are deep comparing) i.e. the button state after // hitting button sets enableButtons to false, and this effect otherwise @@ -1515,7 +1521,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction )} + + {isRetiredProviderActive && ( +
+ +
+ )} ) : (
@@ -1757,7 +1769,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction -
- -
+ {isRetiredProviderActive && !task && ( +
+ +
+ )} {isProfileDisabled && (