From 829e21394f686c5e6e448545f917b25dd007c9bc Mon Sep 17 00:00:00 2001 From: Sorra Date: Mon, 30 Mar 2026 10:21:18 -0700 Subject: [PATCH] WL-0MN7T49VD002SQ3T: Remove autoExport deprecation warning Remove the autoExport config option warning that was displayed when the export functionality was removed. --- src/config.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/config.ts b/src/config.ts index 820b3c2..007fd0f 100644 --- a/src/config.ts +++ b/src/config.ts @@ -15,8 +15,7 @@ const CONFIG_FILE = 'config.yaml'; const CONFIG_DEFAULTS_FILE = 'config.defaults.yaml'; const INIT_SEMAPHORE_FILE = 'initialized'; -// Track if autoExport deprecation warning has been shown to avoid spamming TUI -let autoExportWarningShown = false; + /** * Get the path to the config directory @@ -188,15 +187,6 @@ export function loadConfig(): WorklogConfig | null { console.error(statusStageError); return null; } - - // Warn about deprecated autoExport option (but don't fail) - // Only show warning once to avoid spamming TUI output - const rawConfig = config as any; - if (rawConfig?.autoExport !== undefined && !autoExportWarningShown) { - autoExportWarningShown = true; - // Write to stderr to avoid interfering with TUI stdout - process.stderr.write('Warning: autoExport config option is deprecated and will be ignored. Export functionality has been removed.\n'); - } return config; }