You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(attachments): port rehydrateAttachment adapter hook + Thread serialization
Upstream Adapter.rehydrateAttachment rebuilds the fetch_data download
closure after a JSON roundtrip through the state adapter — essential for
queue/debounce concurrency strategies, where entries pass through
JSON.stringify and lose any callable fields. This PR ports the hook to
Python: Adapter gains an optional rehydrate_attachment method (default
no-op on BaseAdapter), Attachment gains a serializable fetch_metadata
dict, and Chat._rehydrate_message now threads the active adapter and
invokes the hook on any attachment whose fetch_data was stripped.
Per-adapter implementations land on Slack (url + teamId), Teams (url),
Google Chat (resourceName + url), Telegram (fileId), and WhatsApp
(mediaId); Discord, GitHub and Linear intentionally do not implement it
(upstream parity — they use public URLs or have no file attachments).
Closes 3 [concurrency: queue attachment rehydration] fidelity gaps.
Refs #52.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments