CLI --after <id> replays a resolved need instead of waiting for the next one
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 54/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- github, rust
- Domain
- backend-api-design, cli
Research direction
Start by locating the CLI handling for --after and the code that creates or returns needs; compare how the threads need is handled after resolution with the current human review hold. Trace the reproduction using the two example PRs or equivalent need transitions. Done means the command returns only a newer need and does not replay the resolved need id.
Written by the indexing model from the issue text.
Description
Observed
mergeloop agent-labs-dev/nebula#12024 --after 8d59c6d6ba92823c exits at once with needs: threads ("1 review comment is unresolved"), and its then repeats the same --after 8d59c6d6ba92823c. The same happens for #12224 with --after 7c3df3885f1a4535.
At that moment nothing is unresolved:
- GitHub: #12024 has 1 review thread, 0 unresolved; #12224 has 3, 0 unresolved.
mergeloop call pull_statusfor both:queue.state: held,hold.reason: review_required("waiting for a required review").
Running the same command without --after returns the current need correctly: needs: human, "waiting for a required review", with a new id 5e3bc4e930b614d6.
Expected
--after <id> returns only a need newer than <id>. When the need <id> has already been answered (here, its threads resolved and the PR moved to a review hold), it should return the current need, not replay <id>.
Impact
A follower re-armed with the documented then command exits immediately and tells the agent to work threads that no longer exist. Following the brief means looping on a stale need; a background follower never waits on the human hold.
Reproduction
- Get a
needs: threadsneed for a PR and note its id. - Resolve the threads (no push), so the PR moves to another hold such as a required code owner review.
- Run the
thencommand,mergeloop <repo>#<n> --after <id>: it returns the samethreadsneed and id at once.
CLI from cli-latest, run 2026-11-09 around 12:20 UTC.
- Dominant language
- Rust
- Stars
- 6
- Forks
- 0
- Avg merge
- 4h 17m
- Merged PRs (30d)
- 132
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from agent-labs-dev/mergeloop
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
agent-labs-dev/mergeloop#374 ·
Maintainers usually reply within 1 day
-
Batch PRs drop members' labels, so label-gated checks fail every batchPossibly taken @cjber claimed this today. Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
agent-labs-dev/mergeloop#372 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
agent-labs-dev/mergeloop#371 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
agent-labs-dev/mergeloop#370 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
agent-labs-dev/mergeloop#369 · 1 comment ·
Maintainers usually reply within 1 day
All issues in agent-labs-dev/mergeloop
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Copperpour/Copperpour#1105 ·
Maintainers usually reply within 1 day
-
bug release-blocker
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
refactor: Use new Bloom filter API introduced in arrow-rsPossibly taken @etseidl claimed this today. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/datafusion#27923 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
erkamyaman/rust-anything#1153 ·
Maintainers usually reply within 1 day
-
area: infra tier: p3 type: chore
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day