mvp-factory-openhands/test-scripts/run-openhands.sh

16 lines
415 B
Bash
Executable File

#!/bin/bash
# OpenHands CLI wrapper with auto-confirmation
TASK="$1"
# Create a temporary file with the task and auto-confirmation
{
echo "$TASK"
sleep 2
echo "Always proceed (don't ask again)"
sleep 5
echo "exit"
} | /home/bam/.local/bin/openhands -t "" 2>&1
# Alternative: Just send task and auto-confirm
# echo "Always proceed (don't ask again)" | /home/bam/.local/bin/openhands -t "$TASK"