hyperhive/nix/templates
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 644519f358 fix: skip matrix avatar upload when icon unchanged
matrix-avatar-sync ran on every boot (RemainAfterExit=false + path
trigger), uploading a fresh PNG each time. Every upload mints a new
mxc:// URI, which triggers a profile state event in every joined room
— resulting in timeline spam even when the avatar hasn't changed.

Fix: before uploading, compute sha256sum of /etc/hyperhive/icon.svg
and compare against the last-synced hash stored in
$HYPERHIVE_STATE_DIR/matrix-avatar-icon-hash. Skip the upload if the
hash matches. Write the hash after a successful avatar_url PUT so
subsequent boots are no-ops until the icon file changes.

Hash file lives in the agent's state dir — survives restart, cleared
on purge (so purge + re-provision gets a fresh upload). Delete to force
re-upload manually.

Closes #1231
2026-06-03 23:24:21 +02:00
..
agent-base.nix nix/templates: actually collapse agent-base + manager to role shims (#671 fixup) 2026-05-31 00:07:55 +02:00
harness-base.nix fix: skip matrix avatar upload when icon unchanged 2026-06-03 23:24:21 +02:00
manager.nix feat(#1014): rename manager agent root→ruth across all crates + frontend 2026-06-02 18:18:06 +02:00
weston-vnc.nix chore: scrub #NNN issue references from code comments and nix descriptions 2026-06-01 13:30:52 +02:00