Skip to content

Fix downloaded image extensions from content type#1352

Open
kiwigitops wants to merge 1 commit into
anthropics:mainfrom
kiwigitops:fix-image-content-type-extension-1351
Open

Fix downloaded image extensions from content type#1352
kiwigitops wants to merge 1 commit into
anthropics:mainfrom
kiwigitops:fix-image-content-type-extension-1351

Conversation

@kiwigitops
Copy link
Copy Markdown

Summary

  • save downloaded GitHub attachment images using the response Content-Type when it identifies a supported image type
  • keep the URL extension fallback for existing attachment URLs that already include one
  • add a regression for the extensionless spinner GIF URL so it is saved as .gif instead of defaulting to .png

Fixes #1351.

Testing

  • git diff --check

@kiwigitops kiwigitops force-pushed the fix-image-content-type-extension-1351 branch from 9300825 to 5c39d3a Compare May 24, 2026 05:10
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.

Image MIME mismatch crashes runs: GIFs from issue bodies saved with .png extension, sent to Anthropic API as image/png

1 participant