Adds optional keep-alive functionality to automatically extend workspace sessions during active RDP connections. Uses background PowerShell script to monitor port 3389 and reports activity via coder stat connectivity.
Path: registry/coder/modules/windows-rdp
New version: v1.4.0
Breaking change:
Variables:
keepalive (bool, default: false) - enables RDP connection monitoringkeepalive_interval (number, default: 300) - check interval in secondsImplementation:
coder_script resource spawns background PowerShell processGet-NetTCPConnection -LocalPort 3389 -State Establishedcoder stat connectivity on active connections to extend deadlinestart_blocks_login = false to avoid delaying workspace startupTests:
module "windows_rdp" {
source = "registry.coder.com/coder/windows-rdp/coder"
version = "1.4.0"
agent_id = coder_agent.main.id
keepalive = true
keepalive_interval = 300
}
bun test)bun fmt)Akinniranye Samuel Tomiwa
@samuel-asleep
Coder
@coder
Atif Ali
@matifali