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="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."
195
+
196
+
self.logger.info(f"🔴 Sending error message to user {user_id}: {error_content}")
197
+
198
+
awaitconnection_config.send_status_update_async(
199
+
{
200
+
"type": WebsocketMessageType.ERROR_MESSAGE,
201
+
"data": {
202
+
"content": error_content,
203
+
"status": "error",
204
+
"timestamp": asyncio.get_event_loop().time(),
205
+
},
206
+
},
207
+
user_id,
208
+
message_type=WebsocketMessageType.ERROR_MESSAGE,
209
+
)
210
+
211
+
self.logger.info(f"✅ Error message sent via WebSocket to user {user_id}")
212
+
185
213
exceptExceptionase:
186
214
self.logger.error(f"Error processing final result: {e}")
187
215
# Send error message to user
188
216
awaitconnection_config.send_status_update_async(
189
217
{
190
218
"type": WebsocketMessageType.ERROR_MESSAGE,
191
219
"data": {
192
-
"content": "An error occurred while processing the final response.",
220
+
"content": "An error occurred while processing the final response.\n\nPlease try creating a new plan from the home page.",
0 commit comments