Apply suggestion from @Saedbhati

Co-authored-by: Saed Bhati <105969318+Saedbhati@users.noreply.github.com>
This commit is contained in:
Ahmed Awelkair A 2025-10-15 18:22:52 +03:00 committed by GitHub
parent 11865c239b
commit 1437636364
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -232,6 +232,7 @@ async def step_solve(options: Chat, request: Request, task_lock: TaskLock):
except Exception as e:
logger.error(f"[CHAT] Error processing multi-turn task: {e}")
# Continue with existing context if decomposition fails
yield sse_json("error", {"message": f"Failed to process task: {str(e)}"})
elif item.action == Action.create_agent:
yield sse_json("create_agent", item.data)
elif item.action == Action.activate_agent: