Fixed starting and stopping the app

This commit is contained in:
Zvonimir Sabljic
2025-06-17 17:41:08 -07:00
parent 5284623e75
commit 30aaf72fa5
2 changed files with 2 additions and 4 deletions

View File

@@ -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:

View File

@@ -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