Stop injecting phantom core profiles into a customized profile set
All checks were successful
Mirror to GitHub / mirror (push) Successful in 2s
release / build (push) Successful in 38s
Build and publish package / package (push) Successful in 45s

ensure_core_profiles() was unconditionally backfilling home/work/away
into the in-memory config on every load, even when the user had
already defined their own profiles (e.g. Home/Away/School). This
showed up as duplicate/phantom lowercase entries in `breadcrumbs
profile list`, and downstream in breadbar and bos-settings.

Now the self-heal only fires when the profile set is completely
empty (a genuinely fresh or corrupted config), never padding an
existing customized set.
This commit is contained in:
Breadway 2026-07-10 13:37:41 +08:00
parent 941742c5b6
commit b786060517
3 changed files with 29 additions and 3 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "breadcrumbs"
version = "2.1.4"
version = "2.1.5"
edition = "2021"
description = "Profile-aware Wi-Fi state machine with Tailscale handling and self-healing watch daemon"
license = "MIT"