fix: fix: dev-poll stale issue detection checks for dead tmux sessions instead of agent assignment (#324) #325
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#325
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-324"
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 #324
Changes
AI Review
Summary
This PR replaces tmux session liveness checks with a three-signal staleness test: no assignee, no open PR, and no agent lock file. Correct fix for distributed deployments where tmux is unavailable.
Findings
info
dev/dev-poll.sh:104:open_pr_exists()is defined (and its signature was updated in this PR to drop theprojectarg) but it is never called anywhere. The staleness check at lines 390–395 duplicates the logic inline. Dead code introduced by this PR.info
dev/dev-poll.sh:404–409: The variable is namedLOCK_FILEand the comment calls it an "agent lock file", but it is actually the impl-summary file written by Claude mid-execution, not at agent startup. An agent can be running and not yet have produced this file. Conversely, a crashed agent may leave the file behind. The assignee check is the stronger signal here; the file check is a reasonable secondary heuristic but the naming is misleading.info
dev/dev-poll.sh:399–402: Earlyexit 0on assignee detection (before the formula-label check and open-PR CI/review handling at lines 417–530) means that an issue with an assignee and an open PR with failed CI or REQUEST_CHANGES will not be handled in PRIORITY 1. It will be picked up by PRIORITY 1.5 (stuck PRs) in the next poll cycle — a potential 10-minute delay but not a correctness bug. The same applies to the lock file early exit at lines 406–409.Verdict
APPROVE — Core staleness detection fix is correct and well-structured; minor dead-code and semantic issues are non-blocking
Reviewed at
f2c7c80| AGENTS.mdAI Review: APPROVE — Core staleness detection fix is correct and well-structured; minor dead-code and semantic issues are non-blocking