mirror of
https://github.com/Pythagora-io/gpt-pilot.git
synced 2026-01-10 13:37:55 -05:00
Fixed starting and stopping the app
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user