Adds a new module windows-rdp-keepalive designed to keep Windows workspaces active during RDP sessions.
It injects a background coder_script that runs a PowerShell loop. The script monitors qwinsta output to detect active RDP sessions (rdp-tcp in Active state). When detected, it generates standard output to simulate activity, preventing the Coder agent from triggering the inactivity shutdown.
Path: modules/windows-rdp-keepalive
New version: 1.0.0
Breaking change: [ ] Yes [x] No
bun test)bun fmt)qwinsta output parsing)Fixes #200
Since this module relies on Windows Server-specific commands (qwinsta), logic was verified via a local mock simulation suite covering Active, Disconnected, and Missing RDP states.
Logic Verification Video: https://youtu.be/Xg1Yaor9j08
Related Issues /closes #200 /claim #200
A.W M
@Youngthug38
Coder
@coder