7552031751
- Introduced a new private method `_sanitizeFilesForWebUI` to clean up file data before sending it to the WebUI. - Updated message handling to utilize the sanitized file data, ensuring that only non-null entries are included in the messages sent. - Enhanced the logic for handling attachment IDs and files in the message structure, improving data integrity and consistency.