Skip to content

feat(session): sync compose-bar images and files with desktop drafts - #7

Open
Adam-Dalloul wants to merge 2 commits into
xintaofei:mainfrom
Adam-Dalloul:feat/composer-draft-attachments
Open

feat(session): sync compose-bar images and files with desktop drafts#7
Adam-Dalloul wants to merge 2 commits into
xintaofei:mainfrom
Adam-Dalloul:feat/composer-draft-attachments

Conversation

@Adam-Dalloul

@Adam-Dalloul Adam-Dalloul commented Aug 16, 2026

Copy link
Copy Markdown

Merge order

  1. Desktop #479 (draft endpoints)
  2. iOS #6 (text-only compose-bar sync)
  3. Desktop #483 (attachment-ref API)
  4. Then this PR (iOS #7)

This branch already contains iOS #6. Merge #6 first so this reviews as the attachment delta. The desktop attachment API is #483.


The iOS compose bar now:

  • Uploads a picked image to /upload_attachment and PUTs the jail ref with the draft text
  • Hydrates remote images via jail-only read_upload_attachment (thumbnail locally; send uses empty image data + file:// so the server re-inlines)
  • Shows a file chip for workspace file:// refs and sends resource_link
  • Omits attachments until the first GET so an older desktop cannot be wiped

WS notify stays ids-only. No secrets. One extra concern on top of #6.

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