Fix: force-complete IsProcessing siblings during client recreation instead of skipping#384
Draft
Fix: force-complete IsProcessing siblings during client recreation instead of skipping#384
Conversation
…NV-O14) Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] [BUG-123] Fix skipping IsProcessing siblings during client recreation
Fix: force-complete IsProcessing siblings during client recreation instead of skipping
Mar 16, 2026
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.
When
SendAsyncfails and triggers client recreation, sibling sessions that areIsProcessinghave permanently dead event streams — theirCopilotSessionwas tied to the old client that was just disposed. The re-resume loop was skipping them entirely, leaving recovery to the watchdog (2–5 min delay before orchestrator retries).Changes
CopilotService.cs— Replaceif (otherState.Info.IsProcessing) continuewithForceCompleteProcessingAsyncbefore re-resume:ForceCompleteProcessingAsyncis INV-1-compliant: clears all 9+ companion fields, resolves the TCS, and firesOnSessionComplete— triggering immediate orchestrator retry. The session is then re-resumed on the new client in the same loop iteration.MultiAgentRegressionTests.cs— AddReconnectLoop_IsProcessingSiblings_ForceCompletedNotSkipped(INV-O14) verifying the bare-continueskip pattern is gone andForceCompleteProcessingAsyncis called with the expected reason tag.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
c78vsblobprodcus322.vsblob.vsassets.io/usr/bin/dotnet dotnet restore --no-dependencies /tmp/codeql-scratch-abbd4936ea2bb08e/dbs/csharp/working/55BB33C8E1046D06DB6BC8FB401555C0/missingpackages_workingdir --packages /tmp/codeql-scratch-abbd4936ea2bb08e/dbs/csharp/working/missingpackages /p:DisableImplicitNuGetFallbackFolder=true --verbosity normal --configfile /tmp/codeql-scratch-abbd4936ea2bb08e/dbs/csharp/working/nugetconfig/nuget.config --force(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.