Skip to content

Show pasted image previews on remote threads - #507

Merged
SDSLeon merged 1 commit into
masterfrom
poracode/brave-comet-69683210
Aug 5, 2026
Merged

Show pasted image previews on remote threads#507
SDSLeon merged 1 commit into
masterfrom
poracode/brave-comet-69683210

Conversation

@SDSLeon

@SDSLeon SDSLeon commented Aug 5, 2026

Copy link
Copy Markdown
Owner
  • Pasted images on remote threads are uploaded to the host desktop, but composer previews tried to read the local path and showed broken images; previews now render from a local object URL of the pasted bytes.
  • Centralized image attachment URL resolution in attachmentImageUrl(...), preferring the pasted-bytes preview, then the paired desktop's image endpoint, then the local-file protocol.
  • Remote thread and remote draft composers now resolve previews and the lightbox through the desktop's image endpoint instead of assuming a local path.
  • Remote threads now save pasted clipboard images to the host desktop so the agent running there can access them.
  • Revoke paste object URLs when attachments are removed or cleared to avoid leaks; added unit coverage for preview resolution, revocation, and remote saving.

- Prefer the local blob preview over remote/local path URLs for pasted images
- Upload pasted clipboard bytes to the remote desktop so the agent can read them
- Revoke object URLs when attachments are removed or cleared
@SDSLeon
SDSLeon merged commit 849816f into master Aug 5, 2026
8 checks passed
@SDSLeon
SDSLeon deleted the poracode/brave-comet-69683210 branch August 5, 2026 23:06
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