This commit is contained in:
Zvonimir Sabljic
2024-07-24 17:31:51 -07:00
parent 0ebe872250
commit e7ef931153
2 changed files with 5 additions and 1 deletions

View File

@@ -102,7 +102,7 @@ class BugHunter(BaseAgent):
self.next_state.current_iteration["description"] = human_readable_instructions
self.next_state.current_iteration["bug_hunting_cycles"] += [{
"human_readable_instructions": human_readable_instructions,
"fix_attempted": False
"fix_attempted": any(c['fix_attempted'] for c in self.current_state.current_iteration["bug_hunting_cycles"])
}]
if hunt_conclusion.conclusion == magic_words.PROBLEM_IDENTIFIED:

View File

@@ -129,6 +129,10 @@ class Developer(BaseAgent):
# This is just a support for old iterations that don't have status
self.next_state.complete_iteration()
self.next_state.action = f"Troubleshooting #{len(self.current_state.iterations)}"
elif iteration["status"] == IterationStatus.IMPLEMENT_SOLUTION:
# If the user requested a change, then, we'll implement it and go straight back to testing
self.next_state.complete_iteration()
self.next_state.action = f"Troubleshooting #{len(self.current_state.iterations)}"
elif iteration["status"] == IterationStatus.AWAITING_BUG_FIX:
# If bug fixing is done, ask user to test again
self.next_state.current_iteration["status"] = IterationStatus.AWAITING_USER_TEST