DeepSeek Harness Plugin: dsh-session-url (One Conversation, One Link)

DSH (DeepSeek Harness) embraces an “everything-as-a-plugin” philosophy. When developing or using the DSH Web GUI, the conversation shown in the main view is synchronized with the address bar. The dsh-session-url plugin leverages the URL fragment mechanism to interconnect conversations and links. It resolves mismatches between the address bar and the active session state, with no reliance on build tools or network requests.

Core Features

  • View synced to link: The conversation in the main view is reflected in the URL fragment #/session/<id>. Implemented via history.replaceState; it does not add new history entries (the back key still exits the GUI).
  • Link restores view: Opening or pasting #/session/<id> launches the corresponding conversation. Parsing is forgiving, supporting #/sessions/<id>, missing leading slash, URL encoding, and trailing slashes.
  • Sidebar rows are links: Each sidebar row is a transparent, real anchor element. Right-click copies the link or opens it in a new tab; middle-click or Cmd+click opens a new tab directly; left-click toggles to that conversation.
  • Zero overhead: Zero dependencies, no build step, no network requests, no analytics, no disk writes, no telemetry.

Installation and Activation

Install this plugin via the DSH CLI:

dsh plugin --profile web add link:$PWD
# or after publishing:
dsh plugin --profile web add dsh-session-url

After installation, the browser half takes effect on the next page refresh; row links become active when the host starts (or hot-load if patchReload: live is configured).

Usage Examples

  • Right-click on a sidebar row: Use the browser’s native “Copy Link” or “Open Link in New Tab”.
  • Middle-click or Cmd+click on a sidebar row: Open that conversation directly in a new tab.
  • Paste in the address bar: Paste #/session/<id> or similar variants; the targeted conversation will open within 8 seconds of page load.

Notes

  • 8-second authoritative window: For 8 seconds after page load, the link takes precedence over restoring the locally saved selection. If clicked during this period, the link may be honored once.
  • Archived conversations: Links to archived conversations are rejected immediately.
  • Fragment-only: Links contain only the fragment, not path or query strings. If the link includes login credentials (e.g., ?token=), it is not shareable.
  • Self-disable: If DSH’s service form changes (e.g., sessions / workspaces / uiWorkspace mismatch), the plugin self-disables and prints diagnostics.
  • Depends on official structure: Row links rely on the official sidebar row structure div[data-row-key="session:<id>"]; if this structure changes upstream, the links will fail silently.

Privacy and Resources

The plugin runs in the browser half, reads only the directory snapshot, and calls the official openSession. It does not make network requests, perform analytics, or write to local disk.

  • Repository: https://github.com/DDDMUC/dsh-session-url
  • Maintainer: DDDMUC
  • License: MIT
羽毛球分组比赛记分
小程序二维码

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

Xiaoye