You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
assign_to_agent: allow multiple assignments to same issue when pull_request_repo differs #23726
When assign_to_agent is called twice for the same issue but with different pull_request_repo values (e.g. a multi-platform request targeting Husband for iOS and Husband-Droid for Android), the second assignment is silently skipped.
Root Cause
In assign_to_agent.cjs, the already-assigned guard short-circuits as soon as Copilot appears in currentAssignees, regardless of whether a different pull_request_repo was requested:
if(currentAssignees.some(a=>a.id===agentId)){core.info(`${agentName} is already assigned to ${type} #${number}`);results.push({ ...,success: true});continue;// ← second assignment is never made}ObservedBehaviorSuccessfullyassignedcopilotcodingagenttoissue #6587Waiting10secondsbeforeprocessingnextagentassignment...
Usingper-itempullrequest repository: perrystreetsoftware/Husband-Droidcopilotisalreadyassignedtoissue #6587←secondassignmentskippedThesecondcallhadadifferentpull_request_repoandshouldhavetriggeredanewCopilotsessioninthatrepo.ProposedFixOnlyskipwhennoexplicitpull_request_repo is provided:
if(currentAssignees.some(a=>a.id===agentId)&&!effectivePullRequestRepoId){core.info(`${agentName} is already assigned to ${type} #${number}`);results.push({ ...,success: true});continue;}Thispreservestheno-opdedupbehaviorforplainre-assignmentswhileallowingCopilottobetriggeredforasecondplatform(differentpull_request_repo)onthesameissue.
Activity
pelikhan commentedon Apr 6, 2026
Treat the pairs of assignee/target repo as the uniqueness key used to avoid duplicating an assignment
pelikhan commentedon Apr 12, 2026
@copilot skip duplicate detection when a different repo is specified.
chore: update community contributions (2026-04-13)