dsh-draft-attachments

Persists unsent composer attachments per session, so images and files pasted into the input box survive page switches, conversation switches and app restarts: the bytes are mirrored in IndexedDB and handed back through the official createDrafts/addAttachments channel, and are dropped as soon as the message is sent or you remove them.

Overview

Persists unsent composer attachments per session, so images and files pasted into the input box survive page switches, conversation switches and app restarts: the bytes are mirrored in IndexedDB and handed back through the official createDrafts/addAttachments channel, and are dropped as soon as the message is sent or you remove them.

Installation

Install from npm

dsh plugin --profile web add dsh-draft-attachments

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

Install from GitHub

dsh plugin --profile web add github:2026heshao/dsh-draft-attachments

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.