show task description when starting new task

pull/1160/head
LeonOstrez 1 year ago
parent 1e3bd4b9cc
commit 052bd8a4f0

@ -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.",

Loading…
Cancel
Save