diff --git a/pipeline_service/agent_loop.py b/pipeline_service/agent_loop.py index 3a09ad1..a36c3fd 100644 --- a/pipeline_service/agent_loop.py +++ b/pipeline_service/agent_loop.py @@ -1230,7 +1230,7 @@ async def role_agent_run(project_id, role, agent_id=None, model_name=None): _iter = None capability_ctx = { "project_id": project_id, - "iteration_id": getattr(_iter, 'id', '') if _iter else '', + "iteration_id": _iter.get('id', '') if _iter else '', "who": role, "agent_id": agent_id, }