Draft
Fix Mediator v3 interface breaking changes: ValueTask return types and source generator leak#1446
Conversation
Copilot
AI
changed the title
[WIP] Fix issue with Copilot functionality
Fix Mediator v3 interface breaking changes: ValueTask return types and source generator leak
Aug 2, 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.
CI failing due to two distinct breakages from Mediator v3.0.2 adoption.
NoOpMediatorinterface mismatch (CS0535, CS0738)Mediator v3 changed
IMediator/ISender/IPublisherto useValueTaskinstead ofTask, addedICommand<T>/IQuery<T>overloads toISender, and removedSend<TRequest>(TRequest) where TRequest : IRequest. UpdatedNoOpMediatorto match:Mediator.SourceGeneratortransitive leak (CS0436)Mediator.SourceGeneratorinDevBetterWeb.Web.csprojlackedPrivateAssets>all, causing the source generator to run in every test project referencing Web. This re-generatedAssemblyReference,MediatorOptions, andMediatortypes that conflicted with those already compiled into the Web assembly.