Skip to content

Desktop file encoding issue#5490

Merged
adamdotdevin merged 2 commits intoanomalyco:devfrom
crob19:bug/desktop-file-rendering
Dec 19, 2025
Merged

Desktop file encoding issue#5490
adamdotdevin merged 2 commits intoanomalyco:devfrom
crob19:bug/desktop-file-rendering

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 anomalyco:dev Dec 19, 2025
thdxr pushed a commit that referenced this pull request Dec 19, 2025
rekram1-node pushed a commit that referenced this pull request Dec 27, 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

Comments