Description

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.

Type of Change

  • New module
  • New template
  • Bug fix
  • Feature/enhancement
  • Documentation
  • Other

Module Information

Path: modules/windows-rdp-keepalive New version: 1.0.0 Breaking change: [ ] Yes [x] No

Testing & Validation

  • Tests pass (bun test)
  • Code formatted (bun fmt)
  • Changes tested locally (Logic verified via local PowerShell simulation of qwinsta output parsing)

Related Issues

Fixes #200

Verification Demo

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

Claim

Total prize pool $150
Total paid $0
Status Pending
Submitted November 26, 2025
Last updated November 26, 2025

Contributors

A.

A.W M

@Youngthug38

100%

Sponsors

CO

Coder

@coder

$150