@@ -4,7 +4,7 @@ import { useState } from "react";
44import { useTranslation } from "react-i18next" ;
55
66import { App , Button } from "antd" ;
7- import { UploadOutlined , LinkOutlined } from "@ant-design/icons" ;
7+ import { UploadOutlined , LinkOutlined , ExclamationCircleOutlined } from "@ant-design/icons" ;
88
99import { ScrollArea } from "@/components/ui/scrollArea" ;
1010import { Tooltip , TooltipContent , TooltipProvider , TooltipTrigger } from "@/components/ui/tooltip" ;
@@ -185,25 +185,21 @@ export default function SubAgentPool({
185185 className = { `py-3 px-2 flex flex-col justify-center transition-colors border-t border-gray-200 h-[80px] ${
186186 isCurrentlyEditing
187187 ? "bg-blue-50 border-l-4 border-l-blue-500" // Highlight editing agent, add left vertical line
188- : ! isAvailable
189- ? "bg-gray-50 opacity-60 cursor-not-allowed"
190188 : "hover:bg-gray-50 cursor-pointer"
191189 } `}
192190 onClick = { async ( e ) => {
193191 // Prevent event bubbling
194192 e . preventDefault ( ) ;
195193 e . stopPropagation ( ) ;
196194
197- if ( ! isGeneratingAgent && isAvailable ) {
195+ if ( ! isGeneratingAgent ) {
198196 if ( isCurrentlyEditing ) {
199197 // If currently editing this Agent, click to exit edit mode
200198 onExitEditMode ?.( ) ;
201199 } else {
202200 // Otherwise enter edit mode (or switch to this Agent)
203201 onEditAgent ( agent ) ;
204202 }
205- } else if ( ! isAvailable ) {
206- message . warning ( t ( "subAgentPool.message.unavailable" ) ) ;
207203 }
208204 } }
209205 >
@@ -214,7 +210,10 @@ export default function SubAgentPool({
214210 ! isAvailable ? "text-gray-500" : ""
215211 } `}
216212 >
217- < div className = "flex items-center" >
213+ < div className = "flex items-center gap-1.5" >
214+ { ! isAvailable && (
215+ < ExclamationCircleOutlined className = "text-amber-500 text-sm flex-shrink-0" />
216+ ) }
218217 { agent . display_name && (
219218 < span className = "text-base leading-normal" >
220219 { agent . display_name }
@@ -278,7 +277,7 @@ export default function SubAgentPool({
278277 </ TooltipTrigger >
279278 < TooltipContent >
280279 { ! isAvailable
281- ? t ( "subAgentPool.tooltip.unavailableAgent " )
280+ ? t ( "subAgentPool.tooltip.hasUnavailableTools " )
282281 : isCurrentlyEditing
283282 ? t ( "subAgentPool.tooltip.exitEditMode" )
284283 : `${ t ( "subAgentPool.tooltip.editAgent" ) } ${
0 commit comments