Use absolute path for opencode in run-ai.sh for cron compatibility

This commit is contained in:
Ernie Cook
2026-03-02 09:40:46 -05:00
parent 0de38b8578
commit 9baa655f9c

View File

@ -58,7 +58,7 @@ Your task: Continue building the web application. Read the current state from WO
# Run opencode with the task
cd "$SCRIPT_DIR"
opencode --prompt "$TASK_PROMPT" 2>&1 | tee -a "$LOG_FILE"
/home/ernie/.opencode/bin/opencode --prompt "$TASK_PROMPT" 2>&1 | tee -a "$LOG_FILE"
EXIT_CODE=${PIPESTATUS[0]}
if [ $EXIT_CODE -eq 0 ]; then