You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: graphify hook install loses community labels on rebuild #705
When using graphify hook install, the post-commit hook triggers _rebuild_code() which overwrites human-readable community labels with generic placeholder names.
Steps to reproduce
Run /graphify . — communities get human-readable labels (e.g. "Domain Models & Enums")
Install hook: graphify hook install
Make any code change and commit
Hook triggers rebuild → GRAPH_REPORT.md and graph.html now show generic "Community N" labels
Root cause
Full pipeline (Step 5) writes .graphify_labels.json, then Step 9 cleanup deletes it
_rebuild_code() in watch.py hardcodes labels = {cid: "Community " + str(cid)} instead of reading persisted labels
graph.json stores community IDs per node but no community_labels mapping
Expected behavior
Hook rebuild should preserve human-readable community labels.
Possible fix options
Don't delete .graphify_labels.json in Step 9 cleanup, and make _rebuild_code() read it
Or store community_labels directly inside graph.json
Additional note
.graphify_incremental.json is also not cleaned up after --update — should be added to Step 9 cleanup.
Activity
safishamsi commentedon May 4, 2026
Fixed in v0.7.5: hook rebuild now reads
.graphify_labels.jsonto preserve community labels.Fix hook rebuild losing community labels; fix gemini platform install (…
Fix hook rebuild losing community labels; fix gemini platform install (…