Skip to content

Commit

Permalink
correctly reset relevant_files after changing None/empty list semanti…
Browse files Browse the repository at this point in the history
…cs (#995)
  • Loading branch information
senko authored Jun 4, 2024
1 parent 4c64be9 commit 4b936bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/agents/developer.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ async def ask_to_execute_task(self) -> bool:

self.next_state.current_task["description"] = user_response.text
self.next_state.current_task["run_always"] = True
self.next_state.relevant_files = []
self.next_state.relevant_files = None
log.info(f"Task description updated to: {user_response.text}")
# Orchestrator will rerun us with the new task description
return False
2 changes: 1 addition & 1 deletion core/agents/tech_lead.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ async def apply_project_template(self) -> Optional[str]:
)
# Saving template files will fill this in and we want it clear for the
# first task.
self.next_state.relevant_files = []
self.next_state.relevant_files = None
return summary

async def ask_for_new_feature(self) -> AgentResponse:
Expand Down
2 changes: 1 addition & 1 deletion core/db/models/project_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def complete_task(self):
self.set_current_task_status(TaskStatus.DONE)
self.steps = []
self.iterations = []
self.relevant_files = []
self.relevant_files = None
self.modified_files = {}
flag_modified(self, "tasks")

Expand Down

0 comments on commit 4b936bf

Please sign in to comment.