diff --git a/core/agents/developer.py b/core/agents/developer.py index 8ed6987550..af9fe61ba7 100644 --- a/core/agents/developer.py +++ b/core/agents/developer.py @@ -381,6 +381,7 @@ class Developer(ChatWithBreakdownMixin, RelevantFilesMixin, BaseAgent): } ] ) + await self.ui.clear_main_logs() await self.send_message(f"Starting task #{task_index} with the description:\n\n## {description}") if self.current_state.run_command: await self.ui.send_run_command(self.current_state.run_command) @@ -398,8 +399,6 @@ class Developer(ChatWithBreakdownMixin, RelevantFilesMixin, BaseAgent): if self.current_state.current_task.get("hardcoded", False): return True - await self.ui.clear_main_logs() - if self.current_state.current_task and self.current_state.current_task.get("hardcoded", False): await self.ui.send_message( "Ok, great, you're now starting to build the backend and the first task is to test how the authentication works. You can now register and login. Your data will be saved into the database.",