fix(agent controller): missing await (#6040)

This commit is contained in:
Xingyao Wang
2025-01-04 23:57:07 -05:00
committed by GitHub
parent d2790c8b21
commit b7bbf0f5eb
2 changed files with 2 additions and 13 deletions

View File

@@ -390,7 +390,7 @@ class AgentController:
if new_state in (AgentState.STOPPED, AgentState.ERROR):
# sync existing metrics BEFORE resetting the agent
self.update_state_after_step()
await self.update_state_after_step()
self.state.metrics.merge(self.state.local_metrics)
self._reset()
elif (