mirror of
https://github.com/block/buzz.git
synced 2026-11-15 22:02:04 +00:00
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>