Skip to content

Conversation

@crob19
Copy link
Contributor

@crob19 crob19 commented Dec 13, 2025

Issue with the display of some file types in the desktop app.

The shouldEncode() function treated all files with MIME type application/octet-stream as binary. Bun's MIME detection returns this type for many text-based programming languages, causing them to be unnecessarily encoded.

Added extension-based fallback checking before encoding application/octet-stream files. The function now checks if the file extension indicates a text file (.py, .go, .rb, .swift, .kt, etc.) and skips base64 encoding for these files.

Removing check for octet-stream
@adamdotdevin adamdotdevin merged commit ba4cc3b into sst:dev Dec 19, 2025
thdxr pushed a commit that referenced this pull request Dec 19, 2025
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