generated from nhcarrigan/template
2c64ef089e
CRITICAL BUG: The config store had a race condition in all methods that accessed the current config. The pattern: ```typescript let currentConfig = defaultConfig; config.subscribe((c) => (currentConfig = c))(); ``` This immediately unsubscribes (the `()` at the end), creating a race where sometimes it would get the value, sometimes it wouldn't. This caused: - Config appearing "lost" after permission approvals - Settings resetting to defaults randomly - Model selection not persisting FIX: - Created a proper `getCurrentConfig()` helper that unsubscribes cleanly - Replaced ALL instances of the buggy pattern (12 occurrences!) - getConfig(), updateConfig(), toggles, theme setters, font methods, etc. This should completely fix the config loss issue.