feat: Enhance AgentChatWidget with Improved Message Handling and UI Updates

- Updated the AgentChatWidget to manage AI response states, including a new mechanism for handling pending messages and a thinking animation indicator.
- Improved the initialization of embedded labels for resource tools, ensuring labels are loaded only when necessary, enhancing performance and user experience.
- Refined the chat history synchronization process to ensure timely updates in the chat history popup.
- Enhanced the UI layout for better readability and interaction, including adjustments to button styles and spacing for a more polished appearance.
This commit is contained in:
scawful
2025-10-05 12:08:11 -04:00
parent 8b9f838054
commit a7c384a37d
4 changed files with 561 additions and 402 deletions

View File

@@ -235,6 +235,11 @@ public:
// History synchronization
void SyncHistoryToPopup();
// AI response state
bool waiting_for_response_ = false;
float thinking_animation_ = 0.0f;
std::string pending_message_;
// Chat session management
struct ChatSession {
std::string id;