- Add missing MAX_CI_FIXES=3 and MAX_REVIEW_ROUNDS=5 constants to the config section; referencing undefined variables with set -euo pipefail caused an abort on first CI failure or REQUEST_CHANGES review. - cleanup() trap now calls kill_tmux_session() so any unexpected exit (SIGTERM, errexit, unbound variable) kills the Claude session rather than leaving it running autonomously without an orchestrator. - do_merge() initial CI wait loop now breaks and returns 1 immediately on failure/error states, avoiding a full 10-minute poll before a merge attempt that would also fail. - Inner review-poll loop no longer updates LAST_PHASE_MTIME when it detects a mid-wait phase-file change; leaving it stale ensures the outer loop detects and dispatches the new phase on its next tick (previously the phase was silently swallowed). - post_refusal_comment dedup now fetches the last 5 comments and checks any of them, so a human reply between two agent runs no longer causes a duplicate refusal comment. - Remove duplicate DELETE labels/backlog call in claim section. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| dev-agent.sh | ||
| dev-poll.sh | ||
| phase-test.sh | ||