fix: Fix image preview for Windows paths in playground #12083
Merged
Conversation
Contributor
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
viktoravelino
approved these changes
Mar 6, 2026
Codecov Report❌ Patch coverage is ❌ Your project status has failed because the head coverage (42.83%) is below the target coverage (60.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #12083 +/- ##
==========================================
+ Coverage 37.60% 37.63% +0.03%
==========================================
Files 1623 1623
Lines 79603 79583 -20
Branches 11971 11964 -7
==========================================
+ Hits 29932 29950 +18
+ Misses 48014 47980 -34
+ Partials 1657 1653 -4
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OBJECTIVE: Fix image files sent from Windows not displaying in the playground chat by normalizing backslash paths to forward slashes across all file utility functions.
CHANGES:
\) to forward slashes (/) inisImageFile,getFileDisplayName,getFilePreviewUrl, andextractFileInfoFilePreviewDisplayby removing manual blob fetch logic and using direct image URLs withcrossOrigin="use-credentials"crossOrigin="use-credentials"toFileCardimage element for consistent auth handling