auto-close-duplicates only honors a thumbs-down from the issue author, unlike what the bot comment promises

Status Open
Maintainer reply None cached
Activity 5 comments · opened Jul 19, 2026

The dedupe bot comment built by scripts/comment-on-duplicates.sh promises (line 89):

To prevent auto-closure, add a comment or 👎 this comment

with no author qualifier. But scripts/auto-close-duplicates.ts (line 228-231) only counts a -1 reaction when reaction.user.id === issue.user.id, so a thumbs-down from anyone other than the issue author is silently ignored and the issue still auto-closes.

The parallel comment path has no such filter: a comment from any user blocks closure (commentsAfterDupe checks no author). Honoring any user's thumbs-down makes the two paths consistent and grants no new abuse surface, since anyone can already block closure by commenting.

An alternative would be rewording the bot comment to say "the issue author can 👎", but matching the code to the promise (and to the comment path) seems strictly better for reporters whose duplicates were misdetected. Happy to open a PR.

View original on GitHub ↗

4 Comments

marcindulak · 1 month ago

This problem is known since as early as January 2026, see https://github.com/anthropics/claude-code/issues/19267#issuecomment-3770698342.

However, I'm afraid your PR won't be merged, and this issue will be auto-closed in 2* 14 days when no further comments are made, see https://github.com/anthropics/claude-code/issues/30407#issuecomment-4813778775.

Codeturion · 1 month ago

Thanks for the sweep-timer pointer.

This PR fixes the specific 👎 gap from #19267: auto-close-duplicates.ts only counts a thumbs-down from the issue author, so anyone else's 👎 is dropped even though the bot comment invites it. #79151 makes any user's 👎 block closure. It doesn't touch the broader stale/dupe problems, just closes this one gap.

fsc-eriker · 27 days ago

Adding a noise comment to prevent this from being closed.

Codeturion · 27 days ago

Yeah, we can definitely try that

Showing cached comments. Read the full discussion on GitHub ↗