Fix bugs related to quick implementation flow and redo flow

This commit is contained in:
mijauexe
2025-05-16 14:28:56 +02:00
parent 16dc7db8c6
commit 0bc4c421bc
2 changed files with 4 additions and 1 deletions

View File

@@ -336,11 +336,12 @@ class Developer(ChatWithBreakdownMixin, RelevantFilesMixin, BaseAgent):
"task_index": task_index,
}
)
await self.send_message(f"Starting task #{task_index} with the description:\n\n" + description)
await self.send_message(f"Starting task #{task_index} with the description:\n\n{description}")
if self.current_state.run_command:
await self.ui.send_run_command(self.current_state.run_command)
if self.next_state.current_task.get("redo_human_instructions", None) is not None:
await self.send_message(f"Additional feedback: {self.next_state.current_task['redo_human_instructions']}")
return True
if self.current_state.current_task.get("quick_implementation", False):

View File

@@ -89,6 +89,8 @@ class Orchestrator(BaseAgent, GitMixin):
branch_id=project_state.branch_id, step_index=project_state.step_index
)
await self.state_manager.restore_files()
self.current_state.epics[-1]["completed"] = False
self.next_state.epics[-1]["completed"] = False
self.next_state.current_task["redo_human_instructions"] = redo_human_instructions
await self.update_stats()