Preface¶
When developing or debugging client plugins in DeepSeek Harness (DSH), the Host-side cordis tree can be hot-updated, but the frontend already loaded in the browser may still continue running old code. Previously, the more reliable approach was to quit the entire application and reopen it to see the effects of hot-injected plugins. dsh-quick-reload provides a semi-transparent ⟳ button in the bottom-right corner of the Web UI that, before refreshing the page, first clears the browser-side rebuildable caches, then reloads the page according to the latest module graph published by the Host, making client-side changes visible as soon as possible.
What Is This¶
- Plugin id / repo name:
dsh-quick-reload(maintainer lyjsyyds) - Category: Client-side (npm package name
dsh-quick-reload-lyjs, because the short name is already taken on npm) - Positioning: One-click page refresh for the DSH Web UI; does not restart the Host process, does not write the profile
- Directory page: https://www.skillhub.cn/plugins/lyjsyyds/dsh-quick-reload
- Source: https://github.com/lyjsyyds/dsh-quick-reload (MIT © 2026 LYJS, current documented version v0.1.1)
Core Functions¶
UI Entry¶
The client entry is in lib/client.js, registering an item with id quick-reload and order 100 to shell.overlay (text comes from the locale). shell.overlay is a root-scope, type list, replaceRisk: none slot: the button is mounted on a framework-level floating layer, independent of each Session, and will neither squeeze nor replace single-line slots occupied by other plugins (e.g., the conflict scenario between sidebar.footer.action and dsh-context, which is explained in the README). The layer is click-through by default; this item restores clickability via pointer-events:auto.
The button is about 32px, with a default opacity of about 0.68, becoming more visible on hover/focus; it is positioned 18px inset from the bottom-right corner, consistent with the framework floating-pill convention.
What Happens on Click¶
A normal click, before the page reload, handles DSH’s long-term immutable caching of /plugins/** and the collision problem where “rev comes only from file metadata, yet different bytes yield the same rev”:
- Clear all buckets in Cache Storage (including the remote access shell cache
dsh-remote-shell-v1, etc.). - Call
update()on all Service Worker registrations. - Collect the
/plugins/**URLs to be revalidated via the Host’s HMR SSE (GET /plugins/events) and the performance timeline, refetch them withcache:'reload'; the cap is about 160 URLs, 1.2s per request, and a total budget of 2.2s to avoid dragging down the reload.
Deliberately preserved: localStorage, sessionStorage, cookies, disk profile, Sessions, and the current session, etc. — to avoid losing drafts, panel widths, or remote pairing credentials (e.g., dsh-remote-device).
Shift+click: performs only a bare page reload, without the above cache cleanup.
The whole path does not touch the Host process or agent runtime: no app restart, no /dsh-market/restart, no profile writes; in-progress turns, background tasks, or terminals can continue after the page reconnects.
The Host-side entry lib/index.js merely keeps the bundle valid, with no extra logic.
Installation & Activation¶
Before installing, please review the source and the MIT license yourself; the plugin runs under the current dsh process privileges and, like any community plugin, installing it means trusting its code behavior.
Install from a release prebuilt package (you must fully quit the desktop app first):
dsh plugin --profile desktop add https://github.com/lyjsyyds/dsh-quick-reload/releases/download/v0.1.1/dsh-quick-reload-0.1.1.tgz
Or in the GUI: Settings → Plugins → Install, and put the same URL above into the spec field.
Local development directory (link form; the CLI will write dependencies and dsh.profile.bundles):
dsh plugin --profile desktop add link:<absolute path to this directory>
Uninstall: remove the bundle in Settings → Plugins, or:
dsh plugin --profile desktop remove dsh-quick-reload-lyjs
and remove the corresponding entry from dsh.profile.bundles; the button will disappear after the next launch.
Typical Usage¶
- Install and start the Web UI of the DSH desktop profile.
- After hot-injecting or modifying a client-side plugin, click ⟳ in the bottom-right corner, and wait for the brief cache cleanup and reload.
- If the Host has published new files and the rev has changed, sometimes a plain reload is enough; if you suspect the same rev with different bytes, use a normal click to take the full cleanup path.
- When you only need a quick refresh and do not care about plugin caching, Shift+click.
In-repo smoke test (no network dependency):
npm test
Equivalent to node tests/quick-reload.smoke.mjs, with 19 checks total.
Use Cases & Caveats¶
Suitable for: developers who frequently modify DSH client plugins and want to see overlay/UI changes immediately inside the Web UI.
Not a replacement for: the scenario where already-loaded Host modules have been rewritten — the README explicitly states that an application restart is still required.
Permissions & security: only clears browser-side rebuildable caches and reloads the page, without changing the plugin set or the profile; please check the GitHub source before installing. Community directories such as SkillHub are independent sites with no official affiliation with DeepSeek / High-Flyer; the installation commands in this article follow the repository README.
Closing¶
dsh-quick-reload shrinks “quit and reopen to see client plugins” into a single click in the bottom-right corner (with cache cleanup when needed), without harming Sessions and pairing state. For more information, see the SkillHub directory page and the GitHub repository.