From dff27ac7e4b5261a184fda59de6215a8e98c960a Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 14 Dec 2025 12:21:00 +0000 Subject: [PATCH] Fix setup wizard not showing on first run The wizard was checking if 'pgp_enabled' key existed in settings dict, but StateManager.get_settings() always returns this key (as a default value when settings.json doesn't exist). This caused the wizard to think it had already run, even on first launch. Fix: Check if settings file exists instead of checking for key presence. trace/gpg_wizard.py:120 --- trace/gpg_wizard.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/trace/gpg_wizard.py b/trace/gpg_wizard.py index 5038c91..628cb8c 100644 --- a/trace/gpg_wizard.py +++ b/trace/gpg_wizard.py @@ -115,10 +115,9 @@ def check_and_run_wizard(): Returns True if wizard was run, False otherwise. """ state_manager = StateManager() - settings = state_manager.get_settings() - # Check if wizard has already been run (presence of any GPG setting indicates setup was done) - if "pgp_enabled" in settings: + # Check if settings file exists - if it does, wizard has already been run + if state_manager.settings_file.exists(): return False # First run - run wizard