From 9baa655f9cc1b57a0ae91b927bc079bb5077bf6e Mon Sep 17 00:00:00 2001 From: Ernie Cook Date: Mon, 2 Mar 2026 09:40:46 -0500 Subject: [PATCH] Use absolute path for opencode in run-ai.sh for cron compatibility --- run-ai.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-ai.sh b/run-ai.sh index f71148a..63e851d 100755 --- a/run-ai.sh +++ b/run-ai.sh @@ -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