DeepSeek Harness Plugin

airainal/dsh-draft-attachments

Stars ★ 2 Category UI Enhancements Added 2026-11-20

Keeps unsent images and files in the composer when you switch sessions.

Install

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:airainal/dsh-draft-attachments

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

DSH stores a per-session composer draft as text, reference chips, quotes and a command token. Images and files you attach before sending are browser-owned draft attachments; they are released when the session scope is disposed. The visible result is that switching to another session and back restores what you typed but drops the attachments.

This plugin keeps unsent attachments with the session:

  • Replaces the optional composer attachment rail so it can observe the browser-owned File objects.
  • Stores them in IndexedDB keyed by the current session id, and removes the stored copy when the rail becomes empty (message sent, or every attachment removed).
  • Re-adds the stored files through the composer's own intake path when the session is opened again, so limits, uploads and submit behavior stay the shipped code path.
  • Keeps the document-level file drop route.

Scope: it restores files that were still in the composer when you left the session. It does not change the Host session log, already-sent messages, or the text-draft behavior. Very large drafts are capped at 24 files per session.

Install

Install this directory as a local bundle from Plugins → Add plugin, or let an agent run plugin_manager install_bundle with this directory.

Limitations

  • Attachments are stored per browser origin in IndexedDB; clearing site data removes them.
  • Re-opening a session re-uploads restored files, because the Host upload receipts of the old draft are not reused.

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.