disinto/dev
openhands c5e5a14b91 fix: Dev-poll must inject CI failures and review feedback into running sessions (#771)
When a dev-agent tmux session is alive, dev-poll and review-poll
previously skipped it entirely — leaving the agent deaf to CI results
and review feedback if the orchestrator (dev-agent.sh) had died.

Changes in dev-poll.sh:
- Add handle_active_session() helper that checks running sessions for
  injectable events instead of blindly skipping
- Detect externally merged/closed PRs and clean up stale sessions
- Inject CI success/failure into sessions in PHASE:awaiting_ci
- Inject review feedback into sessions in PHASE:awaiting_review
- SHA-based sentinel prevents duplicate injections across poll cycles
- Replace all 7 tmux skip blocks with handle_active_session calls

Changes in review-poll.sh:
- inject_review_into_dev_session() now falls back to formal forge
  reviews when no bot review comment is found
- Call injection when skipping already-reviewed PRs (previously only
  called after performing new reviews)

Evidence: PR #767 (#757) — CI failed twice with agent stuck in
awaiting_ci; PR merged manually with session blocking new backlog.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 19:35:44 +00:00
..
AGENTS.md chore: gardener housekeeping 2026-03-26 2026-03-26 18:14:35 +00:00
dev-agent.sh fix: Address review — remove stale Matrix references from runtime prompts 2026-03-26 15:11:44 +00:00
dev-poll.sh fix: Dev-poll must inject CI failures and review feedback into running sessions (#771) 2026-03-26 19:35:44 +00:00
phase-handler.sh fix: Address review — remove stale Matrix references from runtime prompts 2026-03-26 15:11:44 +00:00
phase-test.sh fix: Duplicate read_phase definition in phase-test.sh (#179) 2026-03-23 08:30:13 +00:00