fix: pass max_iterations to grounding agent in no-skill execution path

Without this, the no-skill path ignores the resolved max_iterations
and uses whatever default the agent has, instead of the configured
grounding_max_iterations value.

Co-authored-by: wul48527-code <wul48527-code@users.noreply.github.com>
This commit is contained in:
Dennis-yxchen 2026-03-31 17:03:00 +08:00
parent f845c5f7fb
commit 64a3076058

View file

@ -507,6 +507,7 @@ class OpenSpace:
f"Executing with GroundingAgent "
f"(max {max_iterations} iterations, no skills)..."
)
execution_context["max_iterations"] = max_iterations
result = await self._grounding_agent.process(execution_context)
execution_time = asyncio.get_event_loop().time() - start_time