From be94c611bd152e06766869436c4ecaf4bbd87d2c Mon Sep 17 00:00:00 2001 From: Richard Tang Date: Wed, 15 Apr 2026 22:14:36 -0700 Subject: [PATCH] fix: queen fail when no worker is running --- core/framework/tools/queen_lifecycle_tools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/framework/tools/queen_lifecycle_tools.py b/core/framework/tools/queen_lifecycle_tools.py index 283f15c3..87a8776a 100644 --- a/core/framework/tools/queen_lifecycle_tools.py +++ b/core/framework/tools/queen_lifecycle_tools.py @@ -3430,7 +3430,8 @@ def register_queen_lifecycle_tools( if preamble.get("pending_question"): result["pending_question"] = preamble["pending_question"] - result["agent_idle_seconds"] = round(runtime.agent_idle_seconds, 1) + _idle = runtime.agent_idle_seconds + result["agent_idle_seconds"] = round(_idle, 1) if _idle != float("inf") else -1 for key in ("current_node", "current_iteration"): if key in preamble: