Rewrite dev-poll.sh to remove all tmux session management and use SDK shared libraries instead: - Remove _inject_into_session(), handle_active_session() — no tmux - Replace try_direct_merge() raw curl with pr_merge() from lib/pr-lifecycle.sh - Replace _post_ci_blocked_comment() with issue_block() from lib/issue-lifecycle.sh - Check PID lockfile instead of tmux sessions for active agent detection - Clean up .sid files instead of .phase files - Remove preflight wait loop (dev-agent.sh handles its own labels) - Extract extract_issue_from_pr() helper to DRY up issue number extraction Preserved from main: - Ready-issue scanning (backlog label + deps met) - Priority tier system (orphaned > priority+backlog > backlog) - Orphaned issue detection (in-progress label but no active agent) - Direct merge shortcut (approved + CI green -> merge without spawning agent) - CI fix exhaustion tracking (per-PR counter, max 3 attempts -> blocked label) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| AGENTS.md | ||
| dev-agent.sh | ||
| dev-poll.sh | ||
| phase-handler.sh | ||
| phase-test.sh | ||