Skip to content

Conversation

@shaw-baobao
Copy link
Contributor

@shaw-baobao shaw-baobao commented Jan 23, 2026

Summary

  • Skip UTF-8 decoding for image previews and use convertFileSrc
  • Add a dedicated image preview layout in the file preview popover
  • Expand the list of recognized image file extensions

Comparison

Image asset preview (works as expected)

Screenshot 2026-01-23 at 4 51 56 PM

App icon file preview (fails with UTF-8 decoding)

File is not valid UTF-8

This change ensures binary image files are always rendered using the image preview path instead of attempting UTF-8 decoding.

Testing

  • Manual verification

@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@Dimillian
Copy link
Owner

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Swish!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Dimillian Dimillian changed the title Fix image preview for binary files feat: image preview for binary files Jan 23, 2026
@Dimillian Dimillian merged commit c3b1458 into Dimillian:main Jan 23, 2026
4 checks passed
siddartha-10 pushed a commit to siddartha-10/ClaudeCodeMonitor that referenced this pull request Jan 23, 2026
Co-authored-by: Thomas Ricouard <ricouard77@gmail.com>
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