Skip to content

dashboard image: report why the MCP left the image out - #87

Merged
rahuldotiyer merged 1 commit into
mainfrom
dashboard-image-omitted-reason
Nov 30, 2026
Merged

rahuldotiyer merged 1 commit into
mainfrom
dashboard-image-omitted-reason

Conversation

@rahuldotiyer

Copy link
Copy Markdown
Contributor

core#8446 (in prod since today) changed getDashboardImage: it no longer returns dashboardImageUrl, and says why an image is missing in imageOmittedReason (licensed_data, too_large or sharing_disabled).

dune dashboard image downloaded large images from dashboardImageUrl. That fallback can no longer run, so a too-large dashboard and a private dashboard whose team allows no share links both failed with a bare "returned no image".

  • Remove the download fallback and its share-key handling, since the MCP no longer sends a URL.
  • Report too_large (with the dashboard link) and sharing_disabled as clear errors. Licensed data keeps its existing error.

Tests: TestImageOmittedReasonIsReported fails without the change; go test ./... passes. Checked live on prod: dashboard 481 saves a 1200×1105 JPEG, and 98805 fails with the withheld-chart error.

@rahuldotiyer
rahuldotiyer merged commit 2b5166c into main Nov 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants