Skip to content

fix(settings): sync topbar alert controls on save and sanitize secrets in backup export #76

Done

Description

@mlgitdev

Description

  1. Clicking Save Settings (web/js/settings.js:29-35) calls App.saveConfig(true), setting App._lastSave = Date.now(), which causes App.on("config") (web/js/util.js:103) to suppress the incoming backend config event for 1500ms. Because #settings-save never invokes App.updateMuteBtn(), App.updateTelegramBtn(), or volume re-rendering, topbar controls stay visually desynchronized.
  2. Full Application Backup (web/js/settings.js:692-700) exports raw config including live tv.sessionid, tv.sessionid_sign, borrow.alpaca_secret_key, and alerts.telegram_bot_token in plaintext without warning or stripping.

References: web/js/settings.js:29-35, 686-703, 718-726, 790-799, web/js/util.js:102-105

Steps to Reproduce

  1. Open Settings -> Sound Alerts, toggle Mute in-app audio alerts ON and Enable Telegram Alerts OFF, and click Save Settings.
  2. Observe topbar #btn-mute and #btn-telegram remain visually active/unpaused.
  3. Export a Full Application Backup from Backup & Sync and inspect the JSON file -> raw credentials are exported in plaintext.

Expected Behavior

Saving Settings (as well as Backup Import and Factory Reset) should immediately synchronize topbar Mute, Telegram, and Volume widgets. Full Backup export should strip sensitive credentials/tokens by default (or provide an explicit opt-in checkbox).

Operating System & Version

  • OS: Windows 11 x64 / macOS arm64 / Linux x86_64
  • Version: v2.12.0
  • Display / Scale: Verified via live Chrome CDP (1600x960) & local unit/backend suite

Logs & Additional Context

Live Chrome CDP verified cfgMute: True, cfgTgEnabled: False while btnMuteHasPausedClass: False, btnTgHasPausedClass: False 1.8s after save.

Activity

  1. self-assigned this
    on Dec 2, 2026
  2. added
    bug
    on Dec 2, 2026
  3. mlgitdev commented on Dec 2, 2026

    @mlgitdev
    OwnerAuthor

    🚀 Resolution In Progress

    A fix for this issue has been implemented and submitted in Pull Request #82 (v2.12.1).

    • Branch: fix/audit-remediation-67
    • PR URL: fix(core): resolve 15 verified audit issues across UI, API, concurrency, audio, and packaging (v2.12.1) #82
    • Summary of Changes: Synchronized topbar Mute, Telegram, and Volume controls immediately on Settings Save, Backup Import, and Factory Reset in web/js/settings.js; sanitized credentials by default on Full Backup .json export with an explicit opt-in checkbox. Verified live in Chrome CDP.
    • Verification: compileall clean, 84/84 unit tests passing (including tests/test_audit_fixes.py), and live Chrome CDP verification passed.

    This issue will automatically close upon PR #82 review and merge into main.

  4. github-actions commented on Dec 2, 2026

    @github-actions

    ✅ Issue Validation Passed

    • Conventional Commit title syntax (fix(settings))
    • Verified issue type: BUG
    • Required template sections present and filled out

    This issue is well-structured and ready for work according to the Issue-First Protocol.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions