From 30aaf72fa533fb628f39f7391cf2ec0149e4e9da Mon Sep 17 00:00:00 2001 From: Zvonimir Sabljic Date: Tue, 17 Jun 2025 17:41:08 -0700 Subject: [PATCH] Fixed starting and stopping the app --- core/agents/bug_hunter.py | 3 +-- core/agents/troubleshooter.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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