Skip to content

fix(web): restore build_graph_image endpoint#5432

Open
MukundaKatta wants to merge 4 commits intogoogle:mainfrom
MukundaKatta:codex/adk-build-graph-image-route
Open

fix(web): restore build_graph_image endpoint#5432
MukundaKatta wants to merge 4 commits intogoogle:mainfrom
MukundaKatta:codex/adk-build-graph-image-route

Conversation

@MukundaKatta
Copy link
Copy Markdown

@MukundaKatta MukundaKatta commented Apr 21, 2026

Summary

  • restore the legacy /dev/build_graph_image/{app_name} route that the bundled dev UI still calls
  • render the existing agent graph as PNG bytes through the backend alias instead of returning 404
  • add a regression test that verifies the endpoint returns image/png and forwards dark_mode correctly

Testing

  • python3 -m py_compile src/google/adk/cli/adk_web_server.py tests/unittests/cli/test_fast_api.py
  • PYTHONPATH=src python3 -m pytest tests/unittests/cli/test_fast_api.py -k build_graph_image_returns_png_bytes (fails locally: ModuleNotFoundError: No module named 'google.genai')

Closes #5430

@adk-bot adk-bot added the web [Component] This issue will be transferred to adk-web label Apr 21, 2026
@adk-bot
Copy link
Copy Markdown
Collaborator

adk-bot commented Apr 21, 2026

Response from ADK Triaging Agent

Hello @MukundaKatta, thank you for creating this PR!

This PR is a bug fix. Could you please associate a GitHub issue with this PR? If there is no existing issue, could you please create one?

This information will help reviewers to review your PR more efficiently. Thanks!

@MukundaKatta
Copy link
Copy Markdown
Author

Linked #5430 (the bug report I opened for this). Updated the PR body so the triage agent can pick it up.

@MukundaKatta MukundaKatta force-pushed the codex/adk-build-graph-image-route branch from 3674735 to 6d64415 Compare April 21, 2026 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

web [Component] This issue will be transferred to adk-web

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Dev UI agent graph broken in 1.31.0 — frontend requests removed /dev/build_graph_image/ endpoint

3 participants