mirror of
https://github.com/Graphify-Labs/graphify.git
synced 2026-09-14 19:34:09 +08:00
6eb5923404
`graphify update` (and the git hooks that share its code path) wrote graph.json with numeric-only community IDs instead of readable hub names, because `_rebuild_code` called `to_json()` without the `community_labels` parameter that `cluster-only` already passes. Running `cluster-only` right after `update` "fixed" the names again, which was the visible symptom. - watch.py: forward the already-computed `labels` dict into `to_json`, matching the `cluster-only` code path (cli.py:1203). - watch.py: `_canonical_topology_for_compare` now also strips the new `community_name` field before diffing topology. Without this, the topology-unchanged cache (used to skip a full re-cluster) would never match again once graph.json started carrying names, forcing a full re-cluster on every subsequent `update` even with no code changes. Fixes #1808