Steps to reproduce
Enable-ExperimentalFeature PSAnsiRendering
Then, restart PowerShell.
Expected behavior
With PSAnsiRendering disabled, output yellow text only for warning message (xxx), not for prompt.

Actual behavior
With PSAnsiRendering enabled, output yellow text for warning message (xxx), and all the following output.
Write-Error resets the style.

Environment data
PS D:\tools\PowerShell-7.2.0-preview.2-win-x64> $PSVersionTable
Name Value
---- -----
PSVersion 7.2.0-preview.2
PSEdition Core
GitCommitId 7.2.0-preview.2
OS Microsoft Windows 10.0.19042
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Steps to reproduce
Enable-ExperimentalFeature PSAnsiRenderingThen, restart PowerShell.
Expected behavior
With PSAnsiRendering disabled, output yellow text only for warning message (xxx), not for prompt.
Actual behavior
With PSAnsiRendering enabled, output yellow text for warning message (xxx), and all the following output.
Write-Error resets the style.
Environment data