Skip to content

feat(session): sync the compose bar with desktop drafts - #6

Open
Adam-Dalloul wants to merge 1 commit into
xintaofei:mainfrom
Adam-Dalloul:feat/composer-draft-sync
Open

feat(session): sync the compose bar with desktop drafts#6
Adam-Dalloul wants to merge 1 commit into
xintaofei:mainfrom
Adam-Dalloul:feat/composer-draft-sync

Conversation

@Adam-Dalloul

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

Copy link
Copy Markdown

Merge order

  1. Desktop #479 first (draft GET/PUT + table; this client needs those endpoints)
  2. Then this PR (iOS #6, text-only compose-bar sync)
  3. Desktop #483 (attachment refs; after #479)
  4. iOS #7 stacks on this PR and pairs with #483

iOS #7 includes this commit. Merge this on its own; do not squash #7 first.


The iOS compose bar was device-local. This:

  • GETs get_composer_draft when a persisted session opens
  • PUTs on a 350ms debounce as the user types (and on send/clear)
  • Listens for the ids-only composer-draft://changed firehose (EventStream now surfaces global {channel, payload} frames instead of dropping them)
  • Fetches the body over the authenticated GET; the socket never carries the typed text
  • Ignores this phone's own origin so typing does not bounce

Depends on desktop #479 for the endpoints and table. No secrets. One concern.

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