Skip to content

Commit 58e5fd4

Browse files
committed
Revert a change in handleSteps behavior while I fix the unit test
1 parent f4c65dc commit 58e5fd4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backend/src/run-agent-step.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,9 @@ export const loopAgentSteps = async (
610610
currentAgentState = programmaticAgentState
611611
totalSteps = stepNumber
612612

613-
shouldEndTurn = endTurn
613+
if (endTurn) {
614+
shouldEndTurn = true
615+
}
614616
}
615617

616618
// Check if output is required but missing

0 commit comments

Comments
 (0)