Skip to content

Commit ef178b7

Browse files
refactor: use existing continue_execution flag for max_steps i/o break
1 parent c655c5c commit ef178b7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/askui/models/shared/conversation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,9 @@ def _execute_control_loop(self) -> None:
207207
self._step_index = 0
208208
continue_execution = True
209209
while continue_execution:
210-
if self._is_max_steps_reached():
211-
break
212210
continue_execution = self._execute_step()
211+
if self._is_max_steps_reached():
212+
continue_execution = False
213213
self._on_control_loop_end()
214214

215215
def _is_max_steps_reached(self) -> bool:

0 commit comments

Comments
 (0)