From eda0c69beab6e0d461fef5ec5ec1b1da57acd7b6 Mon Sep 17 00:00:00 2001 From: sharath <29162020+tnfssc@users.noreply.github.com> Date: Thu, 5 Jun 2025 06:46:27 +0000 Subject: [PATCH] fix(context-limit-retry): don't retry when context limit reached --- backend/agentpress/thread_manager.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/agentpress/thread_manager.py b/backend/agentpress/thread_manager.py index a2429fa9..e130b683 100644 --- a/backend/agentpress/thread_manager.py +++ b/backend/agentpress/thread_manager.py @@ -418,6 +418,7 @@ Here are the XML tools available with examples: logger.error(f"Error in run_thread: {str(e)}", exc_info=True) # Return the error as a dict to be handled by the caller return { + "type": "status", "status": "error", "message": str(e) }