From bb59bd5c2876c008e8b10342e3c856e8680fc332 Mon Sep 17 00:00:00 2001 From: nowgnuesLee <192685612+nowgnuesLee@users.noreply.github.com> Date: Tue, 9 Dec 2025 10:04:37 +0000 Subject: [PATCH] fix(FR-1772): add throttle to reduce lag in chat rendering (#4793) resolves #4790 (FR-1772) Adds experimental throttling to the chat component with a 100ms delay between message chunks. This helps control the rate at which messages are processed and displayed, providing a smoother user experience. **Checklist:** - [ ] Documentation - [ ] Minium required manager version - [ ] Specific setting for review (eg., KB link, endpoint or how to setup) - [ ] Minimum requirements to check during review - [ ] Test case(s) to demonstrate the difference of before/after --- react/src/components/Chat/ChatCard.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/react/src/components/Chat/ChatCard.tsx b/react/src/components/Chat/ChatCard.tsx index d847c90d9e..feb40f705c 100644 --- a/react/src/components/Chat/ChatCard.tsx +++ b/react/src/components/Chat/ChatCard.tsx @@ -240,6 +240,7 @@ const PureChatCard: React.FC = ({ const [input, setInput] = useState(''); const { error, messages, stop, status, sendMessage, setMessages } = useChat({ + experimental_throttle: 100, messages: chat.messages, onFinish: () => { setStartTime(null);