config_manager.runtime_state was a plain dict initialized with hardcoded defaults (dm_mood='neutral', evil_mode=False, etc.) that were never updated by any code path except current_gpu. The /config/state endpoint and get_full_config() both returned this stale dict, so the API always reported neutral mood and english mode regardless of actual state. Replaced the static dict with a @property that reads live values from globals (DM_MOOD, EVIL_MODE, BIPOLAR_MODE, LANGUAGE_MODE) on every access. GPU state is still managed via _current_gpu and persisted to gpu_state.json. get_state() and set_state() continue to work for the GPU path.
15 KiB
15 KiB