- Simplified the logic for showing the typing indicator by introducing a new method `_shouldShowTypingIndicator`. - Enhanced the `_isAssistantResponseEmpty` method to check for various conditions that determine if the assistant's response is empty. - Refactored the `_buildTypingIndicator` method to streamline the UI rendering and improve visual feedback with a gradient background. - Removed unnecessary comments and cleaned up the code for better readability and maintainability.
71 KiB
71 KiB