Repository navigation
fix(ci): let triage own all new issues to avoid mention/triage race - #1556
Merged
Merged
Conversation
Previously, claude-mention triggered on `issues: [opened, edited]` while claude-issue-triage skipped issues mentioning @worktrunk-bot. This caused races when a user both commented on an existing issue and filed a new one — two workflows independently created fix PRs for the same bug (#1544/#1545). Now triage handles all new issues (including @worktrunk-bot mentions), and mention only triggers on issue edits. This eliminates the race for new issues while preserving the ability to summon the bot by editing an existing issue. Ref: #1548 (comment) Co-Authored-By: Claude Opus 4.6 <[email protected]>
worktrunk-bot
commented
Mar 16, 2026
worktrunk-bot
left a comment
Collaborator
Author
There was a problem hiding this comment.
Comment on line 20 says "Three triggers" but only two are listed (1 and 2). Before this PR it correctly said "Two triggers" — since this PR removes a trigger path (issues.opened), the count should stay at two or decrease, not increase.
Co-Authored-By: Claude <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
openedfromclaude-mention'sissuestrigger — triage now owns all new issues@worktrunk-botmention skip fromclaude-issue-triageso it handles mentioned issues too.github/CLAUDE.mdhandoff documentation to reflect the new routingContext
Suggested by @max-sixty in #1548: let the issue triager handle all new issues instead of having
claude-mentionrace withclaude-issue-triagewhen@worktrunk-botappears in the issue body.This is complementary to #1548's overlap detection — this PR reduces the trigger surface, while #1548 catches cross-issue races (comment on existing issue + new issue filed simultaneously).
Test plan
@worktrunk-bot→ triage handles (unchanged)@worktrunk-botin body → triage handles (previously skipped to mention)@worktrunk-bot→ mention handles (unchanged)🤖 Generated with Claude Code