Skip to content

Chat 2.0.29: Save on inline images through Home's SAVE_FILE_BYTES - #136

Merged
QuickMythril merged 1 commit into
mainfrom
feat/chat-inline-image-save
Sep 16, 2026
Merged

QuickMythril merged 1 commit into
mainfrom
feat/chat-inline-image-save

Conversation

@QuickMythril

Copy link
Copy Markdown
Member

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 adds SAVE_FILE_BYTES; this wires it.

  • inlineImageToFile() — pure: the parser-validated data:image/(webp|jpeg|png);base64,…{ bytesBase64, fileName, mimeType }, name derived from the caption (leaf-only, bounded, .jpg for jpeg), null for anything else. Unit-tested incl. ../../etc/passwd.._.._etc_passwd.png.
  • coreApi.saveFileBytes()SAVE_FILE_BYTES gated on the host advertising it.
  • Inline-image lightbox offers Save only when the host has SAVE_FILE_BYTES (older Homes / gateway: unchanged, click-to-lightbox only). Open stays absent (no QDN coordinate).
  • Developers reference lists the action; README; version 2.0.29.

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

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
@QuickMythril
QuickMythril merged commit 54ab5f6 into main Sep 16, 2026
4 checks passed
@QuickMythril
QuickMythril deleted the feat/chat-inline-image-save branch September 16, 2026 12:49
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.

1 participant