diff --git a/src/control_backend/agents/user_interrupt/user_interrupt_agent.py b/src/control_backend/agents/user_interrupt/user_interrupt_agent.py index 2046564..25f24af 100644 --- a/src/control_backend/agents/user_interrupt/user_interrupt_agent.py +++ b/src/control_backend/agents/user_interrupt/user_interrupt_agent.py @@ -252,11 +252,9 @@ class UserInterruptAgent(BaseAgent): self._goal_map[str(goal.id)] = slug self._goal_reverse_map[slug] = str(goal.id) - # Recursively check steps for subgoals - if goal.plan and goal.plan.steps: - for step in goal.plan.steps: - if isinstance(step, Goal): - _register_goal(step) + for step in goal.plan.steps: + if isinstance(step, Goal): + _register_goal(step) for phase in program.phases: for trigger in phase.triggers: