Repository navigation
feat(agent): check the device redirector in diagnostics - #2208
Richard Markiewicz (thenextman) merged 6 commits into
Conversation
|
Lines changed
There is no test project for
Expected results on a healthy host: all checks pass, no toast. Note Human-tuned, LLM-assisted content. |
Let maintainers know that an action is required on their side
|
|
Lines changed (refreshed)
Localization The notification text is in The French and Swedish strings were written without a native review and need one before release. The earlier Note Human-tuned, LLM-assisted content. |
There was a problem hiding this comment.
🔵 Needs a closer look
Windows validation is needed to confirm DrDynVc error-code classification across user privilege levels and ensure the startup probe does not disrupt existing RDP channels.
No open issues 🎉
1 file not reviewed
dotnet/DesktopAgent/Properties/Resources.Designer.cs: Generated file
What changed in this PR
Adds device redirector checks to Desktop Agent diagnostics to help identify why Remote Desktop virtual channels cannot open.
Changes:
- Checks device availability, driver state, and disabled service startup settings, skipping these checks when Remote Desktop is disabled.
- Adds a once-per-start notification for persistent failures in RDP sessions when the Agent session feature is enabled.
- Adds English, French, and Swedish notification strings.
| File | Description |
|---|---|
dotnet/DesktopAgent/Properties/Resources.sv.resx |
Adds Swedish notification strings. |
dotnet/DesktopAgent/Properties/Resources.resx |
Adds default English notification strings. |
dotnet/DesktopAgent/Properties/Resources.fr.resx |
Adds French notification strings. |
dotnet/DesktopAgent/Properties/Resources.Designer.cs |
Exposes the new localized resource strings. |
dotnet/DesktopAgent/Program.cs |
Adds delayed, repeated checks before showing a failure notification. |
dotnet/DesktopAgent/Diagnostics/DeviceRedirectorChecks.cs |
Implements device, driver, and service startup checks. |
dotnet/DesktopAgent/Diagnostics/ChannelProbe.cs |
Includes redirector results in diagnostics and supports warning details. |
Review effort: Balanced
|
Lines changed (refreshed)
This replaces the localization note above. Note Human-tuned, LLM-assisted content. |
There was a problem hiding this comment.
🔵 Needs a closer look
Source-only review cannot establish whether the native Windows/RDP probe reliably detects device availability, particularly for CreateFile error 5, without runtime validation in healthy and broken standard-user sessions.
No open issues 🎉
1 file not reviewed
dotnet/DesktopAgent/Properties/Resources.Designer.cs: Generated file
Review effort: Balanced
There was a problem hiding this comment.
🔵 Needs a closer look
Windows RDP validation under standard-user permissions is needed to rule out false warnings from native DrDynVc and SCM behavior with healthy hosts, disabled redirectors, and delayed driver startup.
No open issues 🎉
1 file not reviewed
dotnet/DesktopAgent/Properties/Resources.Designer.cs: Generated file
Review effort: Balanced
Programs on a Remote Desktop host get their virtual channel handle from the Remote Desktop service, which opens the
\Device\DrDynVcdevice provided by therdpdrdriver.Remote Desktop loads that driver by starting
UmRdpService, which depends on it; when the service is Disabled the driver never starts, every channel open by a program fails with error 2, and nothing reports it.The tray diagnostics now show whether the device exists, whether
rdpdris running, and whetherrdpdr,RDBSSandUmRdpServiceare Disabled, alongside the channel checks, using the Windows display names.The checks are skipped when Remote Desktop connections are disabled.
When the Agent's session feature is enabled and the device or driver is missing in an RDP session, the tray shows one notification per start, after a second check to ignore a slow driver start.