Share dispatcher queue cancellation mechanics - #3036
Merged
George Ng (GeorgeNgMsft) merged 1 commit intoSep 19, 2026
Merged
George Ng (GeorgeNgMsft) merged 1 commit into
George Ng (GeorgeNgMsft) merged 1 commit into
Conversation
George Ng (GeorgeNgMsft)
marked this pull request as ready for review
September 18, 2026 23:59
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
George Ng (GeorgeNgMsft)
force-pushed
the
georgengmsft-share-dispatcher-cancellation
branch
from
September 19, 2026 00:34
459fcc4 to
e5cc1e6
Compare
Dominic Nguyen (datduyng)
approved these changes
Sep 19, 2026
jebrans
approved these changes
Sep 19, 2026
George Ng (GeorgeNgMsft)
merged commit Sep 19, 2026
3520259
into
georgengmsft-guarded-action-execution
3 checks passed
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.
This PR removes duplicated dispatcher cancellation code while keeping the public cancellation APIs separate.
cancelCommandand structuredcancelActionstill provide different ownership checks and result shapes, but they now share one internal helper for removing queued requests, marking running requests cancelled, and aborting their controller.Changes
cancelQueuedRequesthelper for request-ID-based queue cancellation.Dispatcher.cancelCommand.cancelCommandByClientIdand the agent-RPCcancelAction(actionContextId)path unchanged.Validation
a6049a3bf15966d09db5c0b5fc8e8b2deb0bf257.