Introduction

In DSH Web, when opening an existing session, you typically only see the most recent content; older messages require repeatedly clicking “Load older”. For long sessions, this disrupts the flow of reviewing old context.

dsh-autoload-history is a DSH plugin maintained by magicOF2 under the MIT license. Its purpose is to automatically load historical messages page by page after a session is opened, until the entire session is ready. The following sections introduce its features, installation method, and optional settings.

Overview

One-sentence summary: Automatically load all historical messages when opening a session, eliminating the need to repeatedly click “Load older”.

It targets DSH Web users who need to view complete historical sessions. After installation, no extra interface operations are required; the plugin handles pagination in the background.

Core Features

Automatic Pagination

After opening a session, the plugin automatically loads historical messages by page, 50 messages per page, until hasMore === false. In other words, long sessions will gradually complete full loading after being opened, without needing manual “Load older” clicks.

Session Awareness

When switching sessions, the plugin automatically continues to work with the current session without interfering between different sessions.

No Interruption to Normal Chatting

Automatic pagination and real-time appending do not conflict; loading historical messages does not interrupt normal chat flow.

No UI Traces

The plugin is mounted on the official session-level slot conversation.composer.dock, with no visible UI traces throughout.

Safety Mechanism

If no progress is made for 3 consecutive pages, the plugin will automatically stop pagination to avoid a dead loop.

Installation and Enablement

Install from GitHub Source Code

Use the following command to install the plugin from GitHub source code:

dsh plugin --profile web add github:magicOF2/dsh-autoload-history

The first time installing from GitHub source code requests allowBuilds build authorization. Follow the prompt to allow it, then retry once.

Install from npm

Use the following command to install the prebuilt package from npm:

dsh plugin --profile web add dsh-autoload-history

The npm prebuilt installation skips the allowBuilds step.

After installation is complete, opening any session activates it automatically, with no extra configuration needed.

Typical Usage

Temporarily Disable Auto-loading

If you only want to temporarily disable it without uninstalling the plugin, you can run:

localStorage.setItem('dsh-autoload-history.disabled', '1')

To restore, run:

localStorage.removeItem('dsh-autoload-history.disabled')

Limit Maximum Pagination Per Session

If you only want to limit the number of pages auto-paginated when opening a session, you can run:

localStorage.setItem('dsh-autoload-history.maxPages', '20')

Here 20 means a maximum of 20 pages, approximately 1000 messages. Invalid setting values will fall back to the default behavior: auto-loading enabled, unlimited pages.

How It Works

The plugin primarily does three things:

  1. Mount to the official session-level slot conversation.composer.dock without adding visible UI.
  2. Call session.loadOlder() to auto-paginate, until hasMore === false.
  3. Automatically stop when 3 consecutive pages have no progress, avoiding a dead loop.

Compatibility and Notes

  • Compatible with DeepSeek Harness >= 0.1.0-rc.5 (web profile).
  • package.json specifies engines: node >=22.19.0, dsh >=0.1.0-rc.5.
  • peerDependencies specifies @deepseek-ai/cordis ^4.0.1.
  • Purely client-side plugin: no host behavior, no data telemetry, no network requests.
  • Does not modify official files; uninstallation completely reverts the system.

The plugin runs under the current dsh process permissions. It is recommended to check the GitHub source code and MIT license before installation to ensure behavior aligns with your requirements.

Conclusion

The specific problem dsh-autoload-history solves is: after opening a long session, there is no need to manually repeatedly click “Load older”. It is suitable for DSH Web users who need to frequently view complete historical sessions. Installation is simple, and uninstallation completely reverts the system.

Community directory page:

https://www.skillhub.cn/plugins/magicOF2/dsh-autoload-history

This directory page is an independent site, not officially affiliated with DeepSeek / Fangyuan, and is not equivalent to the official app store.

GitHub repository:

https://github.com/magicOF2/dsh-autoload-history