config-sync: include all of www/ (two-way merge handles HACS drift) #92

Merged
k.renner merged 1 commits from feat-config-sync-include-www into master 2026-06-30 05:24:20 +00:00
Owner

What

Drops the www/ exclusion from the config-sync sidecar — PATHS now syncs the whole www/ directory instead of just www/heizungsanlage-card.js.

Why

www/ was excluded because the old one-way force-overwrite fought HACS's runtime rewrites of frontend assets. With the new two-way sidecar that's no longer a problem: HACS drift gets committed to live, opened as a PR, and merges correctly. It also removes the merge-refusal edge case I'd flagged — www changes are now committed before the merge step, so there's no uncommitted www drift left to block a merge.

Effect

  • First run after this rolls captures the current HACS drift — 6 tracked files (kiosk-mode, xiaomi-vacuum-map-card) — as one small live PR, then stays current.
  • Going forward, HACS frontend updates will each produce a live commit/PR (a bit more PR traffic, but that's the point — www is now version-tracked in both directions).
  • .storage/, DB, secrets, etc. remain untouched (not tracked).

Validated: sh -n, kubectl kustomize. After merge: one-time kubectl rollout restart deploy/home-assistant -n home-assistant.

🤖 Generated with Claude Code

## What Drops the `www/` exclusion from the config-sync sidecar — `PATHS` now syncs the **whole `www/` directory** instead of just `www/heizungsanlage-card.js`. ## Why `www/` was excluded because the old **one-way force-overwrite** fought HACS's runtime rewrites of frontend assets. With the new **two-way** sidecar that's no longer a problem: HACS drift gets committed to `live`, opened as a PR, and merges correctly. It also removes the merge-refusal edge case I'd flagged — www changes are now committed *before* the merge step, so there's no uncommitted www drift left to block a merge. ## Effect - First run after this rolls captures the current HACS drift — **6 tracked files** (`kiosk-mode`, `xiaomi-vacuum-map-card`) — as one small `live` PR, then stays current. - Going forward, HACS frontend updates will each produce a `live` commit/PR (a bit more PR traffic, but that's the point — www is now version-tracked in both directions). - `.storage/`, DB, secrets, etc. remain untouched (not tracked). Validated: `sh -n`, `kubectl kustomize`. After merge: one-time `kubectl rollout restart deploy/home-assistant -n home-assistant`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
k.renner added 1 commit 2026-06-29 22:14:36 +00:00
www/ was excluded (except the bespoke heizungsanlage card) because the old
one-way force-overwrite fought HACS's runtime rewrites. With two-way sync that
no longer applies: HACS drift is committed to `live`, PR'd, and merges cleanly.
Widen PATHS from www/heizungsanlage-card.js to the whole www/ directory.

Bonus: this also removes the merge-refusal edge case — www changes are now
committed before the merge step, so there's no uncommitted www drift left to
block a merge.

First run captures the current HACS drift (~6 frontend files: kiosk-mode,
xiaomi-vacuum-map-card) as one small live PR, then stays current.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GgbyKgrN1yYWrkAA32rJE5
k.renner merged commit 758bdaf057 into master 2026-06-30 05:24:20 +00:00
Sign in to join this conversation.