From de13e72e15285e01b8d71d9bc7f0ca02d385c8bf Mon Sep 17 00:00:00 2001 From: chengyongru Date: Sat, 9 May 2026 17:05:48 +0800 Subject: [PATCH] refactor(loop): log turn completion with state count --- nanobot/agent/loop.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nanobot/agent/loop.py b/nanobot/agent/loop.py index ea3e50e11..d89ab3007 100644 --- a/nanobot/agent/loop.py +++ b/nanobot/agent/loop.py @@ -1325,6 +1325,11 @@ class AgentLoop: ) ctx.state = next_state + logger.debug( + "[turn {}] Turn completed after {} states", + ctx.turn_id, + len(ctx.trace), + ) return ctx.outbound def _assemble_outbound(