Skip to content

Commit d284be5

Browse files
authored
Merge pull request #1665 from codeflash-ai/fix/checkpoint-subagent-flag
fix: use correct subagent flag in checkpoint guard
2 parents bbad363 + 15d3e06 commit d284be5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

codeflash/optimization/optimizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ def run(self) -> None:
604604
return
605605

606606
function_to_tests, _ = self.discover_tests(file_to_funcs_to_optimize)
607-
if self.args.all and not getattr(self.args, "agent", False):
607+
if self.args.all and not self.args.subagent:
608608
self.functions_checkpoint = CodeflashRunCheckpoint(self.args.module_root)
609609

610610
# GLOBAL RANKING: Rank all functions together before optimizing

0 commit comments

Comments
 (0)