Skip to content

Parse fails on Loxone's own value-identical duplicate attributes (Title redefined) #6

Description

@tobsch

Problem

Any write re-serializes the entire file, so a raw diff is unusable for review.

Repro

cp config.Loxone copy.Loxone
lox-cli config add --type memory --title "X" copy.Loxone
diff config.Loxone copy.Loxone | grep -c '^>'
# → ~11,500 changed lines for ONE added block (identical content, re-emitted)

Expected

Either minimal-diff writes (preserve element order/whitespace so only the real change shows), or a prominent doc note that raw diffs are meaningless and config diff/Loxone Config is the review path.

Impact

Users/agents cannot review a change before uploading it to a live house. Trust in add/wire-connector suffers.


Found during an agent-driven analysis session (Claude Code) building multi-room logic on a real config.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions