Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

style: fix tool auto expand

canisminor19900f5ba3a6cdb1
diff --git a/src/features/Conversation/Messages/AssistantGroup/Tool/index.tsx b/src/features/Conversation/Messages/AssistantGroup/Tool/index.tsx
index 4cd4115a3f1..13df5d473d3 100644
--- a/src/features/Conversation/Messages/AssistantGroup/Tool/index.tsx
+++ b/src/features/Conversation/Messages/AssistantGroup/Tool/index.tsx
@@ -63,7 +63,7 @@ const Tool = memo<GroupToolProps>(
useEffect(() => {
if (needExpand) {
- handleExpand?.(true);
+ setTimeout(() => handleExpand?.(true), 100);
}
}, [needExpand]);