forked from 1b-agent/opencadstudio-upstream
The Windows freeze in #120 never reproduces locally and a hung app prints nothing, so terminal runs and logs came back empty. A watchdog thread now watches a heartbeat the UI thread bumps on every processed message (plus a 5 s liveness timer); 25 s of silence writes a minidump with every thread's stack to %LOCALAPPDATA%\OpenCADStudio plus a note telling the reporter to attach it to the issue. One dump per run, armed only after the first beat, suspend-aware, OCS_NO_WATCHDOG=1 disables. Windows-only; windows-sys gains the Debug/Threading binding features (no new crates). Co-Authored-By: Claude Fable 5 <[email protected]>