Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Fix stuck after incorrect TaskTrackingAction (#11436)

Yuxiao Cheng6b211f3b2903
diff --git a/openhands/runtime/base.py b/openhands/runtime/base.py
index 1474eec023..2c271cc8f1 100644
--- a/openhands/runtime/base.py
+++ b/openhands/runtime/base.py
@@ -984,7 +984,12 @@ fi
task_list=[],
content=f'Failed to read the task list from session directory {task_file_path}. Error: {str(e)}',
)
-
+ else:
+ return TaskTrackingObservation(
+ command=action.command,
+ task_list=[],
+ content=f'Unknown command: {action.command}',
+ )
return NullObservation('')
if (
hasattr(action, 'confirmation_state')