fix: fix: dev-poll 'my thread is busy' exits without checking for pending review feedback (#411) #414
No reviewers
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#414
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-411"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #411
Changes
AI Review
Summary\n\nFixes the case where the dev-poll loop would see an in-progress issue assigned to itself, silently set
BLOCKED_BY_INPROGRESS=true, and exit — skipping any pending REQUEST_CHANGES review on its own PR.\n\n### Logic correctness\n\n- When the bot's issue has an open PR with non-stale REQUEST_CHANGES, it now spawnsdev-agent.shand then setsBLOCKED_BY_INPROGRESS=true, which triggers the early exit at line 595-596 — no double-spawn risk from Priority 1.5.\n- When there is no open PR, or no REQUEST_CHANGES, it falls back to the original "my thread is busy" log + block — correct.\n- The${HAS_CHANGES:-0},|| true, andselect(.stale == false)patterns match the rest of the file exactly.\n\n### Minor observation (not blocking)\n\n- infodev-poll.sh:402-417: The open PR list is fetched twice — once at line 402 to setOPEN_PR=true/false, and again at line 414 to get the PR number. The first fetch doesn't capture the number, so the second is needed. A future refactor could extract the number on the first fetch to save an API call, but this is pre-existing structure, not introduced by this PR.Verdict
APPROVE — Correctly spawns agent for review feedback before blocking; follows existing patterns and exits cleanly.
Reviewed at
72df9bd| AGENTS.mdAI Review: APPROVE — Correctly spawns agent for review feedback before blocking; follows existing patterns and exits cleanly.