//go:build windows package main import ( "os/exec" "syscall" ) // hideWindow configures a command so that it does not open a console window // when it starts. This is essential for the agent running on student Windows // machines, otherwise every docker/podman/tailscale command flashes a window. func hideWindow(cmd *exec.Cmd) { if cmd.SysProcAttr == nil { cmd.SysProcAttr = &syscall.SysProcAttr{} } cmd.SysProcAttr.HideWindow = true }