Repository navigation
NewsAlerts v2.8.1
·
15 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
NewsAlerts v2.8.1 Release Notes
Release Date: 2026-10-23
Release Tag: v2.8.1
SemVer Specification: 2.8.1 (Major: 2, Minor: 8, Patch: 1)
🚀 Overview
NewsAlerts v2.8.1 resolves a critical UI freeze and cross-thread deadlock that occurred when saving settings after tuning audio chimes or reviewing configuration options. In addition, it optimizes configuration updates by eliminating redundant background network calls (re-authentication and 15MB bulk asset fetches) when credentials have not changed.
🎯 Closed Issues
- Issue #37:
fix(settings): eliminate cross-thread UI deadlock on save settings and redundant background syncs— Resolves in PR #38.
🛠️ Bug Fixes & Architectural Hardening
1. Eliminated Cross-Thread WinForms Deadlock (set_on_top)
- Root Cause: When clicking "Save Settings",
Settings.applyUi()dispatchedPOST /api/set_on_top. In the backend WSGI worker thread, assigningpywebview'swindow.on_topcalledwinforms.py:1006(i.TopMost = on_top) off the main UI thread without proper message marshaling, freezing the COM / WinForms event loop and leaving the entire application unresponsive. - Resolution:
- In
app/api.py,set_on_topnow interacts directly with Win32user32.SetWindowPoson Windows using the form's HWND (HWND_TOPMOST/HWND_NOTOPMOSTwithSWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE), which is completely thread-safe and non-blocking. - Caches
_on_top_stateto immediately short-circuit redundant calls. - In
web/js/settings.js,Settings._currentOnTopcaches the current window state and only dispatches/api/set_on_topwhenalways_on_tophas actually changed.
- In
2. Guarded Against Redundant Network Operations on Settings Save
- TradingView Session Guard (
tv_client.py):set_cookies()now verifies whethersessionidandsessionid_signhave actually changed before clearing cookies and spawning a background auth verification HTTP request. - Alpaca Bulk Asset Sync Guard (
borrow.py):update_credentials()now verifies whetherkey_id,secret_key, andmodehave changed before spawning a new thread to download and process 14,000+ US equity records.
🧪 Verification & Quality Gate
- Python syntax compilation passed cleanly across all runtime modules (
app/*.py,run_app.py,tests/*.py). - Unit test suite expanded to 39 unit tests, all passing at 100%.
- Verified secret leak gate with zero credentials committed.