fix last epic completed state

This commit is contained in:
LeonOstrez
2025-07-03 17:56:31 +02:00
parent 471b1b4e85
commit 35508f2f5d

View File

@@ -225,6 +225,7 @@ class TechLead(RelevantFilesMixin, BaseAgent):
# load the previous state, because in this state we have deleted tasks due to epic being completed!
wanted_project_state = await self.state_manager.get_project_state_by_id(self.current_state.prev_state_id)
wanted_project_state.epics[-1]["completed"] = False
self.next_state.epics = wanted_project_state.epics
# Trim logs from existing tasks before adding the new task