Add ValidationResultSeverity filtering for command execution#1789
Draft
Add ValidationResultSeverity filtering for command execution#1789
Conversation
Co-authored-by: einari <134365+einari@users.noreply.github.com>
Co-authored-by: einari <134365+einari@users.noreply.github.com>
Co-authored-by: einari <134365+einari@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add optional parameter for ValidationResultSeverity in execute method
Add ValidationResultSeverity filtering for command execution
Feb 17, 2026
5 tasks
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.
Summary
Commands can now specify which validation severity levels to allow, enabling UIs to show warnings/info to users for confirmation before re-executing with relaxed constraints.
Added
allowedSeverityparameter toICommand.execute()andCommand.execute()CommandPipeline.FilterValidationResults()X-Allowed-SeverityHTTP headerErrorseverity blocks execution (warnings/info filtered out)allowedSeverityblock executionUsage:
Implementation:
Command.filterValidationResultsBySeverity()filters client validationCommandContext.AllowedSeverityproperty,CommandEndpointMapperreads header,CommandPipelinefilters server validationWarning
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:
example.com/opt/hostedtoolcache/node/24.13.0/x64/bin/node /opt/hostedtoolcache/node/24.13.0/x64/bin/node /home/REDACTED/work/Arc/Arc/node_modules/vitest/vitest.mjs run grep -l ext eptor/given/an_interceptor.cs nfig/composer/vendor/bin/grep ext event_source_id_-l cal/bin/grep grep -l ext eptorSelector/when_selecting_interceptors/for_sync_methods.cs de/node/bin/grep ext /and_query_retur--norc /usr/bin/grep grep(dns block)/opt/hostedtoolcache/node/24.13.0/x64/bin/node /opt/hostedtoolcache/node/24.13.0/x64/bin/node /home/REDACTED/work/Arc/Arc/node_modules/vitest/vitest.mjs run grep -l ext ursor/when_moving_next_with_cancellation.cs cal/bin/grep ext er_signature/and/usr/share/dotnet/sdk/10.0.102/MSBuild.dll ndor/bin/grep grep -l ext /when_asking_sho/low:false /usr/bin/grep ext uery.cs(dns block)/opt/hostedtoolcache/node/24.13.0/x64/bin/node /opt/hostedtoolcache/node/24.13.0/x64/bin/node /home/REDACTED/work/Arc/Arc/node_modules/vitest/vitest.mjs run grep -l ext CollectionInterceptor/InvocationTargetWithCollectionNotFound.cs de/node/bin/grep ext s /home/REDACTED/.co-m grep -l ext CollectionInterceptorSelector/given/an_interceptor_selector.cs ep ext orrect_type.cs tnet/tools/grep grep(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.