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
@rohityan rohityan self-assigned this Apr 24, 2026
@rohityan
Copy link
Copy Markdown
Collaborator

Hi @MukundaKatta, Thank you for your contribution through this pull request! This PR has merge conflicts that require changes from your end. Could you please rebase your branch with the latest main branch to address these? Once this is complete, please let us know so we can proceed with the review.

@rohityan rohityan added the request clarification [Status] The maintainer need clarification or more information from the author label Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

request clarification [Status] The maintainer need clarification or more information from the author 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

4 participants