reset_to_defaults() previously only cleared the runtime_config dict and saved config_runtime.yaml, but never touched the actual globals that control runtime behavior. After a reset, LANGUAGE_MODE, AUTONOMOUS_DEBUG, VOICE_DEBUG_MODE, USE_CHESHIRE_CAT, PREFER_AMD_GPU, and DM_MOOD all kept their current in-memory values until the next restart. Now reset_to_defaults() also resets the corresponding globals to their default values from CONFIG (the static config loaded from config.yaml). Both full reset and single-key reset are supported. The default values come from the Pydantic AppConfig schema, ensuring consistency. Tested: set non-default values, full reset -> all back to defaults, single-key reset -> only that key back to default, runtime_state property reflects the reset immediately.
16 KiB
16 KiB