Skip to content

Commit 4ca961d

Browse files
aseembits93claude
andcommitted
fix: use correct subagent flag instead of nonexistent agent attr
The checkpoint guard referenced `args.agent` which is never set — the actual CLI flag is `--subagent`. The old check always evaluated to False, making the condition equivalent to just `self.args.all`. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ecb81fc commit 4ca961d

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)