Skip to content

Commit

Permalink
fix while true
Browse files Browse the repository at this point in the history
  • Loading branch information
rbren committed Nov 14, 2024
1 parent ef44d37 commit 4001192
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openhands/controller/agent_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
)
from openhands.events.serialization.event import truncate_content
from openhands.llm.llm import LLM
from openhands.utils.shutdown_listener import should_continue

# note: RESUME is only available on web GUI
TRAFFIC_CONTROL_REMINDER = (
Expand Down Expand Up @@ -192,7 +193,7 @@ async def start_step_loop(self):
"""The main loop for the agent's step-by-step execution."""

self.log('info', 'Starting step loop...')
while True:
while should_continue():
if self._closed:
break
try:
Expand Down

0 comments on commit 4001192

Please sign in to comment.