The plugin-based design of DeepSeek Harness allows developers to extend its functionality. When running in a non-secure context (for example, LAN HTTP), the official UI calls crypto.randomUUID() while processing image attachments. That function is undefined in such a context, causing a crash. The @visol-456/dsh-web-compat plugin resolves this issue.

Plugin Overview

@visol-456/dsh-web-compat is a client-side plugin designed to provide a compatibility layer for DeepSeek Harness Web. It injects a crypto.randomUUID polyfill in non-secure contexts, ensuring that attachment upload works correctly when accessing over plain HTTP on a LAN, and displays the current environment state on the settings page.

Core Features

  1. Inject Polyfill: Injects a crypto.randomUUID polyfill in non-secure contexts to replace the missing native API.
  2. Status Panel: Adds a “Web Compatibility” status panel to the settings page, showing whether the current runtime is a secure context and the source of randomUUID.
  3. Fix Crash Fixes: Fixes the UI crash caused by adding image attachments when accessing DSH Web over plain HTTP on a LAN (non-secure context).

Installation and Enablement

Install it using the official plugin command:

dsh plugin add @visol-456/dsh-web-compat

Typical Usage

This plugin is mainly used when accessing DeepSeek Harness Web over HTTP (non-secure context) on a LAN. After installation, adding image attachments in a non-secure context no longer triggers a crash, and the system automatically uses the UUID generated by the polyfill.

Use Cases and Notes

  • Use Cases: Users who need to access DeepSeek Harness Web over plain HTTP (non-secure context) on a LAN.
  • Permissions Note: The plugin runs with the privileges of the current DSH process. It is recommended to review the source code and license before installation.
  • Dependencies Note: It relies on the browser environment. crypto.randomUUID is natively supported only in secure contexts (HTTPS, localhost, 127.0.0.1); the plugin fills the gap in HTTP environments with a polyfill.

Summary

@visol-456/dsh-web-compat fixes stability issues during LAN HTTP access by providing the necessary API compatibility, making DSH Web available in more network environments.