From dd593e10562b587f58acc80e0dec491044e551af Mon Sep 17 00:00:00 2001 From: Hannes Rudolph Date: Sat, 7 Feb 2026 21:42:22 -0700 Subject: [PATCH] feat: add retired-provider warning banner in chat view --- webview-ui/src/components/chat/ChatView.tsx | 24 ++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) 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 && (