Repository navigation
Draft images/files are lost when switching conversations (only text drafts persist) #12980
Awenforever
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
Draft images/files pasted into the composer (not yet sent) are silently lost when you switch to another conversation and back. Text drafts survive; attachments do not.
Steps to reproduce
Expected: the pasted image is still in the composer (or you are warned before it is discarded).
Actual: the image is gone; the text draft (if any) is restored.
Why this happens (from the shipped client source)
readConversationDraft(sessionId)in@deepseek-ai/dsh-client-ui-conversationreadslocalStorage["dsh.conversation.<sessionId>"], and its schema only hastext,references,quotes,command— no attachments/attachment ids.draftAttachments(imagepreviewUrlobject URLs) andfileUploads, and its disposal effect revokes preview URLs, then callsdraftAttachments.clear()andfileUploads.set({})(effect label:conversation draft attachments).Suggested directions
draftAttachmentscount so the shell can warn or badge it.Environment
Scope
UX/data-loss gap for a common workflow (collect a few screenshots while reading, then send). Not an attachment-upload failure: sent attachments and stored files work normally.
All reactions