Files
buzz/desktop/src-tauri
npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7 1cbebcc13b feat(desktop): show which config fields need a restart
The restart-required badge was driven by a lossy u64 digest of the
effective spawn config, so it could report that something drifted but
never what. Replace the digest with a typed SpawnConfigSnapshot whose
canonical JSON is the single representation both the badge and a new
redacted `restart_diff` read, making badge-on and diff-non-empty true
by construction rather than by convention.

The diff is a generic walk of that JSON, so a future snapshot field
reaches the UI with no diff-code change; the only per-field knowledge
is a path-based masking policy that also backs the snapshot's manual
Debug, keeping one redaction authority for env values, auth tags, CLI
args (`--token=` is legal), and relay URLs (the normalizer preserves
query strings).

The stamp now happens before spawn(), built from the values that
populated the Command. Re-resolving afterwards let an edit landing in
between stamp the new config onto a child running the old one.

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
2026-07-29 20:12:52 -04:00
..