[release/v7.6] Make some experimental features stable#26490
Merged
daxian-dbw merged 1 commit intoPowerShell:release/v7.6from Nov 20, 2025
Merged
Conversation
The following experimental features are made stable: - PSNativeWindowsTildeExpansion - PSRedirectToVariable - PSSubsystemPluginModel
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR backports changes from #26348 to make three experimental features stable in PowerShell v7.6: PSNativeWindowsTildeExpansion, PSRedirectToVariable, and PSSubsystemPluginModel. The changes remove experimental feature flags, related checks in code and tests, and add the Get-PSSubsystem cmdlet to the default session state.
Key Changes:
- Removed experimental feature definitions and checks for PSNativeWindowsTildeExpansion, PSRedirectToVariable, and PSSubsystemPluginModel
- Added Get-PSSubsystem cmdlet to default session state (previously only available with experimental flag)
- Updated tests to remove experimental feature validation and skip conditions
Reviewed Changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| test/tools/TestMetadata.json | Removes experimental feature entries from test metadata configuration (includes additional features beyond those mentioned in PR description) |
| test/powershell/engine/Basic/DefaultCommands.Tests.ps1 | Adds Get-PSSubsystem cmdlet to expected default commands list |
| test/powershell/Modules/Microsoft.PowerShell.Utility/Set-Variable.Tests.ps1 | Removes experimental feature checks and skip logic for -Append parameter tests |
| test/powershell/Language/Scripting/NativeExecution/NativeWindowsTildeExpansion.Tests.ps1 | Removes experimental feature validation check from test setup |
| test/powershell/Language/Parser/RedirectionOperator.Tests.ps1 | Removes experimental feature checks and skip logic for variable redirection tests |
| src/System.Management.Automation/engine/runtime/Operations/MiscOps.cs | Removes PSRedirectToVariable feature checks, making variable redirection always available |
| src/System.Management.Automation/engine/Subsystem/Commands/GetPSSubsystemCommand.cs | Removes Experimental attribute from Get-PSSubsystem cmdlet |
| src/System.Management.Automation/engine/NativeCommandParameterBinder.cs | Removes PSNativeWindowsTildeExpansion feature check, making tilde expansion always active on Windows |
| src/System.Management.Automation/engine/InitialSessionState.cs | Adds Get-PSSubsystem cmdlet unconditionally to default session state |
| src/System.Management.Automation/engine/ExperimentalFeature/ExperimentalFeature.cs | Removes experimental feature constant definitions and feature entries for the three stabilized features |
| src/Microsoft.PowerShell.Commands.Utility/commands/utility/Var.cs | Removes Experimental attribute from Set-Variable's -Append parameter |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
9 tasks
adityapatwardhan
approved these changes
Nov 20, 2025
jshigetomi
approved these changes
Nov 20, 2025
jshigetomi
approved these changes
Nov 20, 2025
daxian-dbw
approved these changes
Nov 20, 2025
12 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.
Backport of #26348 to release/v7.6
Triggered by @TravisEz13 on behalf of @daxian-dbw
Original CL Label: CL-General
/cc @PowerShell/powershell-maintainers
Impact
REQUIRED: Choose either Tooling Impact or Customer Impact (or both). At least one checkbox must be selected.
Tooling Impact
Customer Impact
This enables three experimental features by default in v7.6:
These features were experimental and now become standard functionality, improving the user experience without requiring configuration.
Regression
REQUIRED: Check exactly one box.
This is not a regression.
Testing
Original PR included test cleanup to remove experimental feature checks. Backport verified by:
Risk
REQUIRED: Check exactly one box.
Medium risk: This stabilizes three experimental features (PSNativeWindowsTildeExpansion, PSRedirectToVariable, PSSubsystemPluginModel) that have been available and tested in previous releases. The changes affect core engine functionality but have been validated in the main branch. The features are well-tested and moving to stable status is appropriate for a release branch.
Merge Conflicts
The file
src/System.Management.Automation/engine/ExperimentalFeature/ExperimentalFeature.cshad conflicts during cherry-pick.Conflict: Release branch v7.6 contained experimental feature entries for PSNativeWindowsTildeExpansion and PSRedirectToVariable that were being removed by the PR to make them stable.
Resolution: Removed the two experimental feature entries from the engine features array, keeping only PSLoadAssemblyFromNativeCode, PSFeedbackProvider, PSSerializeJSONLongEnumAsNumber, and PSProfileDSCResource.
Context: The PR removes features from the experimental list because they are being stabilized (made available by default). PSSubsystemPluginModel was already absent from v7.6's experimental features list.