Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Add INCOGNITO_MODE_DEFAULT env var for default-on incognito recordings
Murtaza Nasir266414c5f05e
diff --git a/config/env.asr.example b/config/env.asr.exampleindex 2e0a8508..9ab2234c 100644--- a/config/env.asr.example+++ b/config/env.asr.example@@ -198,6 +198,9 @@ ENABLE_PUBLIC_SHARING=true# Default: false (feature hidden)ENABLE_INCOGNITO_MODE=false+# Make incognito mode the default for in-app recordings (toggle starts ON)+INCOGNITO_MODE_DEFAULT=false+# --- Background Processing Queues ---# Separate queues for transcription (slow) and summary (fast) jobs# This prevents slow ASR jobs from blocking quick summary generationdiff --git a/config/env.whisper.example b/config/env.whisper.exampleindex 2ffe81a5..63753d62 100644--- a/config/env.whisper.example+++ b/config/env.whisper.example@@ -206,6 +206,9 @@ ENABLE_PUBLIC_SHARING=true# Default: false (feature hidden)ENABLE_INCOGNITO_MODE=false+# Make incognito mode the default for in-app recordings (toggle starts ON)+INCOGNITO_MODE_DEFAULT=false+# --- Background Processing Queues ---# Separate queues for transcription (slow) and summary (fast) jobs# This prevents slow ASR jobs from blocking quick summary generationdiff --git a/src/api/system.py b/src/api/system.pyindex 914350b4..9ddf4845 100644--- a/src/api/system.py+++ b/src/api/system.py@@ -33,6 +33,7 @@ USE_ASR_ENDPOINT = os.environ.get('USE_ASR_ENDPOINT', 'false').lower() == 'true'ENABLE_CHUNKING = os.environ.get('ENABLE_CHUNKING', 'true').lower() == 'true'SHOW_USERNAMES_IN_UI = os.environ.get('SHOW_USERNAMES_IN_UI', 'false').lower() == 'true'ENABLE_INCOGNITO_MODE = os.environ.get('ENABLE_INCOGNITO_MODE', 'false').lower() == 'true'+INCOGNITO_MODE_DEFAULT = os.environ.get('INCOGNITO_MODE_DEFAULT', 'false').lower() == 'true'# Import chunking service (will be set from app)chunking_service = None@@ -236,6 +237,7 @@ def get_config():'can_delete_recordings': can_delete,'users_can_delete_enabled': USERS_CAN_DELETE,'enable_incognito_mode': ENABLE_INCOGNITO_MODE,+ 'incognito_mode_default': INCOGNITO_MODE_DEFAULT,**chunking_info})except Exception as e:diff --git a/static/js/app.modular.js b/static/js/app.modular.jsindex e8b6d438..afd293e0 100644--- a/static/js/app.modular.js+++ b/static/js/app.modular.js@@ -2149,6 +2149,10 @@ document.addEventListener('DOMContentLoaded', async () => {enableArchiveToggle.value = config.enable_archive_toggle === true;showUsernamesInUI.value = config.show_usernames_in_ui === true;enableIncognitoMode.value = config.enable_incognito_mode === true;+ // Set default incognito mode state if feature enabled and default is true+ if (config.enable_incognito_mode && config.incognito_mode_default) {+ incognitoMode.value = true;+ }}} catch (error) {console.error('Failed to load config:', error);