diff --git a/ai-hub/app/core/orchestration/architect.py b/ai-hub/app/core/orchestration/architect.py index 2f255c9..07bf20c 100644 --- a/ai-hub/app/core/orchestration/architect.py +++ b/ai-hub/app/core/orchestration/architect.py @@ -55,7 +55,7 @@ profile = get_profile(feature_name) self.stream = StreamProcessor(profile=profile) turn = 0 - + start_time = time.time() try: while turn < profile.autonomous_limit: turn += 1 @@ -106,10 +106,11 @@ if "role" in event: messages.append(event) else: yield event + elapsed = time.time() - start_time if turn >= profile.autonomous_limit: - yield {"type": "status", "content": "Autonomous limit reached. Please provide more instructions if needed."} + yield {"type": "status", "content": f"Autonomous limit reached after {elapsed:.1f}s. Please provide more instructions if needed."} else: - yield {"type": "status", "content": "Task complete."} + yield {"type": "status", "content": f"Task complete in {elapsed:.1f}s."} except Exception as e: import traceback diff --git a/frontend/src/features/chat/components/ChatWindow.js b/frontend/src/features/chat/components/ChatWindow.js index 46815e4..65268f3 100644 --- a/frontend/src/features/chat/components/ChatWindow.js +++ b/frontend/src/features/chat/components/ChatWindow.js @@ -217,14 +217,14 @@