LibreChat/client/src
Danny Avila 026890cd27
🛡️ fix: Improve Error Handling and Null Safety in SSE Event Processing (#10751)
* 🔧 fix: Handle null content parts in message processing

- Added checks to filter out null content parts in various message handling functions, ensuring robustness against undefined values.
- Updated the `extractMessageContent`, `useContentHandler`, `useEventHandlers`, and `useStepHandler` hooks to prevent errors caused by null parts.
- Enhanced the `getAllContentText` utility to only include valid content types, improving overall message integrity.

* 🔧 fix: Enhance error handling in event and SSE handlers

- Wrapped critical sections in try-catch blocks within `useEventHandlers` and `useSSE` hooks to improve error management and prevent application crashes.
- Added console error logging for better debugging and tracking of issues during message processing and conversation aborting.
- Ensured that UI states like `setIsSubmitting` and `setShowStopButton` are correctly updated in case of errors, maintaining a consistent user experience.

* 🔧 fix: Filter out null and empty content in message export

- Enhanced the `useExportConversation` hook to filter out null content parts and empty strings during message processing, ensuring only valid content is included in the export.
- This change improves the integrity of exported conversations by preventing unnecessary empty entries in the output.
2025-12-01 14:05:50 -05:00
..
@types 🔄 chore: Enforce 18next Language Keys (#5803) 2025-02-12 15:48:13 -05:00
a11y 📦 feat: Move Shared Components to @librechat/client (#8685) 2025-07-27 12:19:01 -04:00
common 👤 feat: Agent Avatar Removal and Decouple upload/reset from Agent Updates (#10527) 2025-11-17 17:04:01 -05:00
components 🛡️ fix: Improve Error Handling and Null Safety in SSE Event Processing (#10751) 2025-12-01 14:05:50 -05:00
constants 🔐 feat: Granular Role-based Permissions + Entra ID Group Discovery (#7804) 2025-08-13 16:24:17 -04:00
data-provider 👤 feat: Agent Avatar Removal and Decouple upload/reset from Agent Updates (#10527) 2025-11-17 17:04:01 -05:00
hooks 🛡️ fix: Improve Error Handling and Null Safety in SSE Event Processing (#10751) 2025-12-01 14:05:50 -05:00
locales 🍞 feat: Add Toasts for Successful Conversation Deletion (#10661) 2025-11-25 17:02:01 -05:00
Providers 🤝 feat: View Artifacts in Shared Conversations (#10477) 2025-11-13 16:59:46 -05:00
routes 📢 fix: Remove Side Panel Elements from Screen Reader when Hidden (#10648) 2025-11-25 13:56:32 -05:00
store feat: Prevent Screen Sleep During Response Generation (#10597) 2025-11-21 09:14:32 -05:00
utils 🛡️ fix: Improve Error Handling and Null Safety in SSE Event Processing (#10751) 2025-12-01 14:05:50 -05:00
App.jsx feat: Prevent Screen Sleep During Response Generation (#10597) 2025-11-21 09:14:32 -05:00
main.jsx 🎨 feat: add copy-tex to improve copying KaTeX (#7308) 2025-05-15 12:08:47 -04:00
mobile.css 🧪 fix: Editor Styling, Incomplete Artifact Editing, Optimize Artifact Context (#8953) 2025-08-08 15:49:58 -04:00
style.css 🪄 style: Improved Input Collapse UI (#10659) 2025-11-25 17:02:52 -05:00
vite-env.d.ts 🖱️ fix: Message Scrolling UX; refactor: Frontend UX/DX Optimizations (#3733) 2024-08-21 18:18:45 -04:00