diff --git a/core/agents/bug_hunter.py b/core/agents/bug_hunter.py index d60afa9966..ccea631afe 100644 --- a/core/agents/bug_hunter.py +++ b/core/agents/bug_hunter.py @@ -151,14 +151,13 @@ class BugHunter(ChatWithBreakdownMixin, BaseAgent): self.current_state.tasks.index(self.current_state.current_task) + 1 ) - await self.ui.stop_app() await self.async_task_finish() test_instructions = self.current_state.current_iteration["bug_reproduction_description"] await self.ui.send_message( "Start the app and test it by following these instructions:\n\n", source=pythagora_source ) - await self.send_message("") + await self.send_message("", extra_info={"restart_app": True}) await self.ui.send_test_instructions(test_instructions, project_state_id=str(self.current_state.id)) if self.current_state.run_command: diff --git a/core/agents/troubleshooter.py b/core/agents/troubleshooter.py index 9c5a6aa8a6..37a11559a0 100644 --- a/core/agents/troubleshooter.py +++ b/core/agents/troubleshooter.py @@ -78,8 +78,7 @@ class Troubleshooter(ChatWithBreakdownMixin, IterationPromptMixin, RelevantFiles await self.ui.send_project_stage({"stage": ProjectStage.TEST_APP}) await self.ui.send_message("Test the app by following these steps:", source=pythagora_source) - await self.send_message("") - await self.ui.stop_app() + await self.send_message("", extra_info={"restart_app": True}) await self.ui.send_test_instructions(user_instructions, project_state_id=str(self.current_state.id)) # Developer sets iteration as "completed" when it generates the step breakdown, so we can't