Skip to content

bug(cli): All visualization is dead in the published wheel: viz/dist was never shipped #1386

Closed

Description

@Shashankss1205

cli/cli_helpers.py:586-626; pyproject.toml:126-127 declares codegraphcontext = ["viz/dist/**/*"]

$ cgc visualize --port 8899
Visualization assets not found.
Checked paths:
  - …/site-packages/codegraphcontext/viz/dist
  - /home/claude/cgc-venv/lib/python3.12/website/dist
  - /home/claude/cgc-venv/lib/python3.12/website/dist
  - /home/claude/website/dist
If you installed from PyPI, upgrade after the next release (wheels must bundle viz/dist).
EXIT=1

$ cgc find name index_helper --visual
EXIT=1   (identical)

$ ls …/site-packages/codegraphcontext/viz/
server.py                       # no dist/
$ grep -c "viz/dist" …/codegraphcontext-0.5.2.dist-info/RECORD
0

Impact. Kills cgc visualize, the cgc v shortcut, the global --visual/-V flag advertised in cgc --help and on a dozen subcommands, and the MCP visualize_graph_query tool (which hands the LLM a localhost:8000 URL for a server that cannot start). The error text itself concedes the release is broken, and its suggested remedy — ./scripts/sync_viz_dist.sh — does not exist for a PyPI user.

Meanwhile utils/visualize_graph.py (461 lines) is a complete, dependency-free, single-file HTML force-directed renderer sitting in the package with no callers anywhere.

Minor: the 2nd and 3rd "checked paths" resolve identically in an installed layout.


Audit environment
Version codegraphcontext 0.5.2 (PyPI)
Commit df3af04
Backend FalkorDB Lite (falkordblite 0.9.0), Python 3.12.3, Linux
Corpus the CodeGraphContext repo itself — 784 files, 23 languages, 5,501 Function nodes

Audit ID U-C3 · severity critical · from an end-to-end audit of CGC 0.5.2 (63 findings). Reported with the reproduction as run.

Activity

  1. added
    bugSomething isn't working
    severity: criticalSilent data loss, arbitrary query execution, or a headline feature that never works
    area: cli/mcpCLI commands, MCP tool contracts, docs
    on Jul 26, 2026
  2. github-actions commented on Jul 26, 2026

    @github-actions
    Contributor

    Hi! 👋 Join our CodeGraphContext Discord channel to collaborate: https://discord.gg/dR4QY32uYQ

  3. moved this from Backlog tasks to In progress in CGC Progress Boardon Jul 26, 2026
  4. moved this from In progress to Done in CGC Progress Boardon Jul 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: cli/mcpCLI commands, MCP tool contracts, docsbugSomething isn't workingseverity: criticalSilent data loss, arbitrary query execution, or a headline feature that never works

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions