dsh-composer-draft-cache: DSH Session Draft Cache Plugin

Introduction

DeepSeek Harness (DSH) adopts a pluggable architecture where everything is extensible. In actual usage, when switching sessions, the text in the input box and pasted images or attachments are often lost, requiring re-input. The dsh-composer-draft-cache plugin solves this problem by caching the editing state of each session in memory. It does not modify the original installation package nor change model or account behavior; it only preserves unsent content during session switches.

Plugin Information

  • Name: dsh-composer-draft-cache
  • Category: Memory
  • Author: BaoBao1996121
  • License: MIT

Core Features

  • Session Isolation: When switching sessions, drafts from each session are independent without cross-contamination of text or attachments.
  • Multi-format Support: Supports text, images, and file attachments, preserving the original editing state of the input box.
  • Automatic Cleanup: After successful sending or manual clearing, the plugin releases the corresponding cache.
  • Failure Recovery: In case of sending failures, the plugin can preserve the draft state of the original input box for resending or modification.

Installation and Activation

The installation process needs to be performed through the DSH local plugin package entry.

  1. Open the Releases download page and download dsh-composer-draft-cache-0.1.0.tgz.

  2. In the DSH “Plugin” management page, find the local plugin package installation entry and select the downloaded file for installation.

  3. After installation, verify the functionality through the flow of “Session A paste image → Switch to Session B → Return to Session A”.

Typical Usage

The core value of the plugin is preserving content after session switching. The specific flow is as follows:

Session A: Input a piece of text + paste Image 1, do not send yet
↓ Switch to Session B
Session B: Input another piece of text + paste Image 2, do not send yet
↓ Return to Session A
Session A: The original text and Image 1 are still there, you can continue to paste Image 3

Notes

  • Cache Scope: Attachments are only cached during the lifetime of the current page. Refreshing the page, closing the application, or restarting will not restore attachments; text persistence is still handled by the original DSH functionality.
  • Memory Usage: If multiple sessions retain unsent attachments, it will occupy browser memory. It is recommended to release the cache after sending or manual clearing.
  • Version Compatibility: This plugin depends on the input box lifecycle fields of DSH version 0.2.0-rc.2. It is recommended to retest after upgrading DSH.

Search Keywords

  • Search term: dsh给我记住
  • Alias/Pinyin: dsh-geiwo-jizhu

More Information

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye