You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error_content="**Attention:** The agent is currently unavailable. Please check if it was deleted or recreated.\n\nIf yes, please create a new plan from the home page."
193
+
self.logger.info(f"🔴 Sending error message to user {user_id}: {error_content}")
194
+
195
+
awaitconnection_config.send_status_update_async(
196
+
{
197
+
"type": WebsocketMessageType.ERROR_MESSAGE,
198
+
"data": {
199
+
"content": error_content,
200
+
"status": "error",
201
+
"timestamp": asyncio.get_event_loop().time(),
202
+
},
203
+
},
204
+
user_id,
205
+
message_type=WebsocketMessageType.ERROR_MESSAGE,
206
+
)
207
+
self.logger.info(f"✅ Error message sent via WebSocket to user {user_id}")
208
+
185
209
exceptExceptionase:
186
210
self.logger.error(f"Error processing final result: {e}")
187
211
# Send error message to user
188
212
awaitconnection_config.send_status_update_async(
189
213
{
190
214
"type": WebsocketMessageType.ERROR_MESSAGE,
191
215
"data": {
192
-
"content": "An error occurred while processing the final response.",
216
+
"content": "**Attention:** An error occurred while processing the final response.\n\nPlease try creating a new plan from the home page.",
"content": "I'm having trouble connecting to the agent right now. Please try again later.",
233
+
"content": "**Attention:** I'm having trouble connecting to the agent right now.\n\nPlease try creating a new plan from the home page or try again later.",
0 commit comments