faf3b1303b
handle_config_options only ever inserted/overwrote the keys a strategy sent, so removing a key (or unassigning a strategy) on the server left the old value lingering on the device. Persist the set of keys applied on the previous push (strategy_managed_keys in LocalConfig) and, on each apply, reset any key the server managed before but no longer sends back to its default. Keys the server never managed (the user's own local settings) are left untouched, so this remains a managed overlay rather than a wipe. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>