From 28fd8457142ba6400f5485675956e297d0380a0b Mon Sep 17 00:00:00 2001 From: openhands Date: Thu, 19 Mar 2026 22:16:01 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20fix:=20action-agent.sh=20ignores=20proje?= =?UTF-8?q?ct=20TOML=20=E2=80=94=20falls=20back=20to=20.env=20defaults=20(?= =?UTF-8?q?#317)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- action/action-agent.sh | 7 ++++--- action/action-poll.sh | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/action/action-agent.sh b/action/action-agent.sh index 2427f22..1793c21 100644 --- a/action/action-agent.sh +++ b/action/action-agent.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # action-agent.sh — Autonomous action agent: tmux + Claude + action formula # -# Usage: ./action-agent.sh +# Usage: ./action-agent.sh [project.toml] # # Lifecycle: # 1. Fetch issue body (action formula) + existing comments @@ -16,10 +16,11 @@ set -euo pipefail +ISSUE="${1:?Usage: action-agent.sh [project.toml]}" +export PROJECT_TOML="${2:-${PROJECT_TOML:-}}" + source "$(dirname "$0")/../lib/env.sh" source "$(dirname "$0")/../lib/agent-session.sh" - -ISSUE="${1:?Usage: action-agent.sh }" SESSION_NAME="action-${ISSUE}" LOCKFILE="/tmp/action-agent-${ISSUE}.lock" LOGFILE="${FACTORY_ROOT}/action/action-poll-${PROJECT_NAME:-harb}.log" diff --git a/action/action-poll.sh b/action/action-poll.sh index 0271482..69fbe89 100644 --- a/action/action-poll.sh +++ b/action/action-poll.sh @@ -69,7 +69,7 @@ for i in $(seq 0 $((COUNT - 1))); do fi log "spawning action-agent for issue #${ISSUE_NUM}" - nohup "${SCRIPT_DIR}/action-agent.sh" "$ISSUE_NUM" >> "$LOGFILE" 2>&1 & + nohup "${SCRIPT_DIR}/action-agent.sh" "$ISSUE_NUM" "$PROJECT_TOML" >> "$LOGFILE" 2>&1 & log "started action-agent PID $! for issue #${ISSUE_NUM}" break done