fix(updater): keep auto-updater alive across watcher restarts (v0.4.1) #7

Merged
serversdown merged 2 commits from dev into main 2026-06-30 01:32:21 -04:00

2 Commits

Author SHA1 Message Date
serversdown 56d2027d08 chore: add icon.ico so the exe gets the proper program icon
thor-watcher had no icon.ico, so build.bat's 'if exist icon.ico' check
always fell through to building without --icon → PyInstaller's default
Python/floppy icon. Reuse the shared Terra-Mechanics icon from
series3-watcher; build.bat now picks it up automatically (no script
change needed). Rides with the pending 0.4.1 build.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 19:06:48 +00:00
serversdown a92afd64cd fix(updater): keep auto-updater alive across watcher restarts (v0.4.1)
Saving the Settings dialog calls _restart_watcher, which set+replaced the
shared stop_event the updater loop also keyed off — so a settings save
silently killed the auto-updater thread (race: survived one save, died on
the next). Heartbeats kept flowing but the agent stopped checking for /
applying updates until relaunch.

Give the updater its own app-lifetime event (_app_stop), set only on
Exit / when applying an update and untouched by watcher restarts. Adds
test_thor_tray.py (4 lifecycle tests). Bump to v0.4.1.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 18:01:58 +00:00