refactor(loop): log turn completion with state count

This commit is contained in:
chengyongru 2026-05-09 17:05:48 +08:00
parent 4a3a9407e4
commit 8cea831009

View File

@ -1270,6 +1270,11 @@ class AgentLoop:
) )
ctx.state = next_state ctx.state = next_state
logger.debug(
"[turn {}] Turn completed after {} states",
ctx.turn_id,
len(ctx.trace),
)
return ctx.outbound return ctx.outbound
def _assemble_outbound( def _assemble_outbound(