generated from nhcarrigan/template
c597e8933a
Adds pending_since and watchdog_generation fields to WslBridge. When send_message is called, pending_since is set to the current instant. When a Result message arrives, it is cleared. A watchdog thread spawned per session polls every 30 seconds and kills the process if pending_since has been set for 5 minutes with no Result, triggering the existing disconnect flow so the user gets an error message and can reconnect. A generation counter ensures old watchdogs exit cleanly when start() is called again for a new session.