only do user goal validation when the task.navigation_goal is set (#1204)
This commit is contained in:
@@ -1031,7 +1031,7 @@ async def handle_complete_action(
|
|||||||
step: Step,
|
step: Step,
|
||||||
) -> list[ActionResult]:
|
) -> list[ActionResult]:
|
||||||
# If this action has a source_action_id, then we need to make sure if the goal is actually completed.
|
# If this action has a source_action_id, then we need to make sure if the goal is actually completed.
|
||||||
if action.source_action_id:
|
if action.source_action_id and task.navigation_goal:
|
||||||
LOG.info(
|
LOG.info(
|
||||||
"CompleteAction has source_action_id, checking if goal is completed",
|
"CompleteAction has source_action_id, checking if goal is completed",
|
||||||
task_id=task.task_id,
|
task_id=task.task_id,
|
||||||
@@ -1051,7 +1051,7 @@ async def handle_complete_action(
|
|||||||
]
|
]
|
||||||
action.verified = True
|
action.verified = True
|
||||||
|
|
||||||
if not action.verified:
|
if not action.verified and task.navigation_goal:
|
||||||
LOG.info(
|
LOG.info(
|
||||||
"CompleteAction hasn't been verified, going to verify the user goal",
|
"CompleteAction hasn't been verified, going to verify the user goal",
|
||||||
task_id=task.task_id,
|
task_id=task.task_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user