Files
Farda Karimov 6eb5923404 fix(watch): forward community_labels to to_json in _rebuild_code
`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
2026-07-13 18:35:20 +01:00
..