diff --git a/ai-hub/app/core/orchestration/agent_loop.py b/ai-hub/app/core/orchestration/agent_loop.py index d641ea7..3b9d975 100644 --- a/ai-hub/app/core/orchestration/agent_loop.py +++ b/ai-hub/app/core/orchestration/agent_loop.py @@ -271,6 +271,10 @@ metrics["output_tokens"] = 20 # Flush metrics to DB in mocked mode! await self._flush_execution_metrics("", metrics) + + # Give polling tests time to see "Executing" status + await asyncio.sleep(0.5) + return { "response": f"Mocked response for: {prompt}", "reasoning": "Mocked reasoning."