Repository navigation
fix(core): resolve 15 verified audit issues across UI, API, concurrency, audio, and packaging (v2.12.1) - #82
Merged
Merged
Conversation
This was referenced Dec 2, 2026
Closed
Closed
Closed
Closed
✅ PR Validation Passed
Ready for review by @mlgitdev! |
mlgitdev
commented
Dec 2, 2026
mlgitdev
left a comment
Owner
Author
There was a problem hiding this comment.
Approved after extended live terminal testing — no problems observed across UI, Screener, News/BamSEC, Tape, hotkeys, or alerts. All multi-OS CI checks green. Merging for v2.12.1 release.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Comprehensive v2.12.1 hardening patch resolving 15 live-verified bugs across Settings/API wiring, BamSEC opt-out & search UX, pop-out Tape quick-add, hotkey modifier combos & remapping, thread-safe TradingView sessions, Alpaca live/paper routing, Tape startup seeding, Telegram worker error handling, bounded LRU caches, cross-platform audio, macOS packaging, and local CSRF/XSS security protections.
Resolves #67, Resolves #68, Resolves #69, Resolves #70, Resolves #71, Resolves #72, Resolves #73, Resolves #74, Resolves #75, Resolves #76, Resolves #77, Resolves #78, Resolves #79, Resolves #80, Resolves #81.
Motivation / Context
A structured static and live Chrome DevTools Protocol (CDP) audit against
v2.12.0confirmed 15 concrete defects — including 3 critical UI/API crashes (Settings.open("tv"), missing/api/open_app_dir&/api/reset_configroutes, and bypassed BamSEC backend opt-out) along with concurrency, caching, cross-platform audio, hotkey, security, and packaging issues. All 15 defects were tracked under issues #67–#81 prior to implementation and are resolved together inv2.12.1.Changes
#tv-status-badgeand#watchlist-status-badgeclicks toSettings.open("general")with safe tab fallback inweb/js/settings.js.POST /api/open_app_dir,POST /api/reset_config, andGET /api/versioninapp/server.pyand exposedopen_app_dir()/reset_config()inweb/js/util.js.Api.get_bamsec()inapp/api.pyto readself._app.cfg.get()instead of non-existentself._app.config..bamsec-results-bodyinweb/js/news.jsso the search<input>preserves DOM identity and focus on every keystroke.App.handleAddToWatchlistinweb/js/util.jsso+watchlist buttons work in detachedweb/tape.html, and aligned script cache-busters to?v=8.toggle_telegram: "Ctrl+Shift+T"toDEFAULT_HOTKEYS(app/config.py) andweb/js/settings.js, fixed"undefined"blur text, implemented full modifier-combo recording & matching (Ctrl/Alt/Shift/Meta), and removed hardcodedSpace/Enter/Escapebypasses.app/config.pywith OS-native paths (Path/PurePosixPath), added Linuxpaplay --volumescaling, and guardedsys.stdoutfallback beeps inapp/sounds.py.TVClient(app/tv_client.py) to cookie-versioned thread-localrequests.Sessioninstances.PK...) vs Live (AK...) endpoint routing with 401/403 fallback, cache invalidation on mode/credential changes, and strictmode="alpaca"handling inapp/borrow.py&app/api.py.app/tape.pyto prevent startup squeeze bursts, respected userretention_days(>= 1) &max_events(>= 100), and debouncedtape_history.jsonwrites.TelegramService(app/telegram.py) to log API errors, honor HTTP 429retry_after, re-checkenabled/pausedunder lock inside_worker(), and escape URLs/labels.app/news.py) and transient BamSEC 5xx/429 errors (app/bamsec.py), bounded caches with LRUOrderedDict, and upgradedNewsPrefetcher(app/screener.py) toqueue.PriorityQueue.VERSIONdynamically inNewsAlerts.specand updatedscripts/package_macos_dmg.shto packagedist/NewsAlerts.app(or copyVERSION+ detect.venvin fallback mode).ast_to_html()links andopen_url()tohttp:///https://, added localhostOrigin/RefererCSRF guard for mutating/api/*POSTroutes, eliminated redundantPOST /api/configon volume changes, and fixedU.pop()listener &readJsonFile()DOM leaks.v2.12.1):VERSIONSSOT to2.12.1and updatedapp/version.pyfallback.docs/SPEC.md,docs/releases/v2.12.1.md,docs/RELEASES.md,docs/wiki/_Footer.md, anddocs/wiki/Keyboard-Shortcuts-&-Hotkeys.md.Verification & Testing
scratch/verify_fixed_cdp.py) against.worktrees/fix-audit-remediation-67confirmingv2.12.1badge,#67,#68,#69,#70,#71,#75,#76, and#81all pass with zero uncaught console exceptions.PurePosixPath), Linuxpaplay --volumecommand construction,sys.stdout=Noneguard,NewsAlerts.specdynamicVERSION, andscripts/package_macos_dmg.shpackaging logic..venv\Scripts\python.exe -m compileall app run_app.py-> exit code0..venv\Scripts\python.exe -m unittest discover -s tests -p "test_*.py"-> 84 tests passed in 0.865s (OK), including 17 new regression tests intests/test_audit_fixes.py.Checklist
type(scope): descriptiondocs/anddocs/wiki/(including version badge in_Footer.md) if applicable