fix: rename function calls to match agent-session.sh exports (#176)
kill_tmux_session → agent_kill_session inject_into_session → agent_inject_into_session wait_for_claude_ready → agent_wait_for_claude_ready Also restore status() function lost during #160 refactor. Fixes dev-agent and gardener-agent crash on startup: line 149: status: command not found line 280: kill_tmux_session: command not found
This commit is contained in:
parent
d27f6bcb99
commit
ae3e742f9f
3 changed files with 29 additions and 24 deletions
|
|
@ -39,6 +39,11 @@ REPO_ROOT="${PROJECT_REPO_ROOT}"
|
|||
API="${CODEBERG_API}"
|
||||
LOCKFILE="/tmp/dev-agent-${PROJECT_NAME:-harb}.lock"
|
||||
STATUSFILE="/tmp/dev-agent-status"
|
||||
|
||||
status() {
|
||||
printf '[%s] dev-agent #%s: %s\n' "$(date -u '+%Y-%m-%d %H:%M:%S UTC')" "$ISSUE" "$*" > "$STATUSFILE"
|
||||
log "$*"
|
||||
}
|
||||
LOGFILE="${FACTORY_ROOT}/dev/dev-agent.log"
|
||||
PREFLIGHT_RESULT="/tmp/dev-agent-preflight.json"
|
||||
BRANCH="fix/issue-${ISSUE}"
|
||||
|
|
@ -95,7 +100,7 @@ CLAIMED=false
|
|||
cleanup() {
|
||||
rm -f "$LOCKFILE" "$STATUSFILE"
|
||||
# Kill any live session so Claude doesn't run without an orchestrator attached
|
||||
kill_tmux_session
|
||||
agent_kill_session
|
||||
# If we claimed the issue but never created a PR, unclaim it
|
||||
if [ "$CLAIMED" = true ] && [ -z "${PR_NUMBER:-}" ]; then
|
||||
log "cleanup: unclaiming issue (no PR created)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue