Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 20, 2025

The sendPollRequest function in memoryStoreUpdatePoller.ts only handled poll-specific abort signals (pollOptions?.abortSignal), ignoring user-provided abort signals from createMemoryStoreUpdatePoller options. This prevented proper cancellation propagation.

Changes

  • Pass options parameter to buildRunningOperation to access user-provided abort signal
  • Check and listen to both options.abortSignal and pollOptions?.abortSignal in sendPollRequest
  • Remove both listeners in finally block to prevent memory leaks

Implementation now matches the reference pattern in pollingHelpers.ts (lines 67-90).


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

- Add options parameter to buildRunningOperation function
- Handle both user-provided and poll-specific abort signals
- Remove both listeners in finally block to prevent memory leaks
- Matches reference implementation in pollingHelpers.ts

Co-authored-by: glharper <[email protected]>
Copilot AI changed the title [WIP] Address feedback on v2 update for LRO poller memory operations Fix incomplete abort signal handling in memory store update poller Nov 20, 2025
Copilot AI requested a review from glharper November 20, 2025 21:58
Copilot finished work on behalf of glharper November 20, 2025 21:58
@glharper glharper marked this pull request as ready for review November 21, 2025 00:47
@glharper glharper merged commit 722799d into glharper/proj-mem-store-update Nov 21, 2025
6 of 7 checks passed
@glharper glharper deleted the copilot/sub-pr-36703-yet-again branch November 21, 2025 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants