Enabled update_files_before_start flag

This commit is contained in:
Zvonimir Sabljic
2023-08-23 14:50:19 +02:00
parent 41b6bd23e2
commit f0cc8cdc59
3 changed files with 11 additions and 2 deletions

View File

@@ -107,12 +107,17 @@ class Developer(Agent):
return True
self.run_command = convo.send_message('development/get_run_command.prompt', {})
if self.run_command.startswith('`'):
self.run_command = self.run_command[1:]
if self.run_command.endswith('`'):
self.run_command = self.run_command[:-1]
if continue_development:
self.continue_development(convo)
def continue_development(self, iteration_convo):
while True:
# TODO add description about how can the user check if the app works
user_feedback = self.project.ask_for_human_intervention(
'Can you check if the app works?\nIf you want to run the app, ' + colored('just type "r" and press ENTER', 'yellow', attrs=['bold']),
cbs={ 'r': lambda: run_command_until_success(self.run_command, None, iteration_convo, force=True) })