mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
- web/src/components/AssistantChat/messages/UserMessage.tsx now subscribes only to role, text, status, and localId instead of the entire message object to avoid re-renders caused by unrelated message state changes (hover/isLast/etc.). - web/src/components/AssistantChat/messages/SystemMessage.tsx now subscribes only to role, text, and icon for the same reason. - This reduces unnecessary renders observed in React DevTools without changing message UI or behavior.