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

@@ -29,7 +29,8 @@ class CodeMonkey(Agent):
}, IMPLEMENT_CHANGES)
convo.remove_last_x_messages(1)
for file_data in changes:
self.project.save_file(file_data)
if (not self.project.args['update_files_before_start']) or (self.project.skip_until_dev_step != str(self.project.checkpoints['last_development_step'].id)):
for file_data in changes:
self.project.save_file(file_data)
return convo