fix: Coordinate review injection between review-poll.sh and dev-agent.sh to prevent double-injection (#90)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
openhands 2026-03-18 09:01:50 +00:00
parent a340e57789
commit 19a245fe5e
2 changed files with 13 additions and 0 deletions

View file

@ -156,6 +156,8 @@ Instructions:
tmux delete-buffer -b "review-inject-${pr_num}" 2>/dev/null || true
rm -f "${inject_tmp}"
log " #${pr_num} review (${verdict}) injected into session ${session}"
# Write sentinel so dev-agent.sh awaiting_review loop skips its own injection
touch "/tmp/review-injected-${PROJECT_NAME}-${pr_num}"
}
while IFS= read -r line; do