Chat 2.0.29: Save on inline images through Home's SAVE_FILE_BYTES - #136
Merged
Merged
Conversation
The one image kind 2.0.28 could not save: an inline data: image is not a QDN resource. Home 2.1.0-beta.12 adds SAVE_FILE_BYTES (bytes the app holds, through Home's save dialog); the inline-image lightbox now offers Save when the host advertises it. inlineImageToFile() splits the parser-validated data: URI into bytesBase64 + a leaf file name derived from the caption (webp/jpg/png) + media type; coreApi.saveFileBytes() sends it. Developers reference lists the new action. README, version 2.0.29. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018XinKVAUP29uVw5C4SRwLz
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.
Completes the image feedback: 2.0.28 (#135) gave public embeds and private attachments Open/Save, but inline
data:images (2.0.26) had nowhere to save to. QortiumDev/qortium-home#608 addsSAVE_FILE_BYTES; this wires it.inlineImageToFile()— pure: the parser-validateddata:image/(webp|jpeg|png);base64,…→{ bytesBase64, fileName, mimeType }, name derived from the caption (leaf-only, bounded,.jpgfor jpeg), null for anything else. Unit-tested incl.../../etc/passwd→.._.._etc_passwd.png.coreApi.saveFileBytes()—SAVE_FILE_BYTESgated on the host advertising it.SAVE_FILE_BYTES(older Homes / gateway: unchanged, click-to-lightbox only). Open stays absent (no QDN coordinate).919/919 tests, build clean. Publish after home#608 ships in beta.12 (host half first); the gating keeps it safe on older Homes either way.
🤖 Generated with Claude Code
https://claude.ai/code/session_018XinKVAUP29uVw5C4SRwLz