mirror of
https://github.com/Pythagora-io/gpt-pilot.git
synced 2026-01-09 21:27:53 -05:00
Fixes
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user