dsh-deepseek-chat: Open DeepSeek Web in DSH sidebar and read back conversations

Preface

When working with agents or long sessions in DSH Desktop, you often need to reference conversations on chat.deepseek.com: writing prompts and running tools in Harness on one side, while following up or verifying answers on the web page on the other. Manually switching windows and copy-pasting is slow, and context is easily lost. The community plugin dsh-deepseek-chat (maintainer Lumos0121) adds an entry at the bottom of the sidebar, consolidating “open the web version” and “send that conversation into the current session” into five fixed options, with fallbacks prepared for both the Desktop right sidebar and system browser paths.

Below, it is explained in terms of positioning, features, installation and usage, and caveats; facts are based on the GitHub repository README. This is not an official DeepSeek project.

What Is This

dsh-deepseek-chat is a client plugin for DSH Desktop (category: client). It adds a bubble button at the bottom of the sidebar, which when expanded provides five operations: open embedded in the right sidebar, open https://chat.deepseek.com/ in the system browser, read the conversation from the right sidebar, read the conversation from the system browser, and customize the hover tooltip for each option.

The current version of the plugin is 1.0.0 (see package.json), license MIT, the repository has about 1 star, and it comes with 91 offline tests (npm test, no network connection, no dependency on an installed DSH).

Core Features

Open chat.deepseek.com

  1. Open in the right sidebar: Calls the DSH first-party API ctx.sidebarRight.openTab('browser', { params: { url } }) to load the chat site in the Desktop right sidebar using an Electron <webview>. If the current environment lacks right-sidebar browser capability (e.g., using an iframe in the web version of DSH, which cannot be embedded due to the site’s Content-Security-Policy: frame-ancestors 'none'), the plugin will not pretend to succeed; it falls back to the system browser and explains in the status that “the right sidebar is unavailable”.
  2. Open in the system browser: Opens via window.open, routed through the Electron main process setWindowOpenHandler to shell.openExternal, opened by the system default browser; the login state is saved by the browser itself.

Bring the Web Conversation into the Current Harness Session

  1. Read the conversation from the right sidebar: Locates webview[data-sidebar-browser-frame] on Desktop, and within the guest page prioritizes using the web version’s IndexedDB cache or the internal API GET /api/v0/chat/history_messages to pull the full text, then generates a share link via POST /api/v0/share/create (the same path as manually “sharing” on the web page); if the API is unavailable, it falls back to a DOM click-based sharing flow. The body is assembled by role into forms such as [Me] / [DeepSeek] and written into the current session.
  2. Read the conversation from the system browser: The system browser has no programmable interface, so this option is semi-automatic — it reads the share link or the entire body you copied from the clipboard, then sends it into the current session.

Custom Hover Tooltips

  1. Customize tooltips: Modify the hover descriptions of the above menu items; they are saved in local localStorage (key dsh-deepseek-chat:texts), take effect immediately after saving, and are not distributed with the plugin package.
  • The plugin does not connect to any servers other than https://chat.deepseek.com/, with no telemetry and no third-party dependencies; /api/v0/... requests are issued by the web page itself under your logged-in state.
  • Both “read” options go through the web version’s sharing flow: they create a public share link for the conversation (or reuse an existing link belonging to the current session if one exists). Do not use them when you don’t need to keep a link, or delete it afterwards in the web version’s share records.
  • Login tokens are used only within the chat page or <webview> context (e.g., localStorage.userToken or cookies), and are never written to files or logs; the right-sidebar partition does not retain cookies/web storage after the application restarts (as stated in the official documentation). For a persistent login state, please use the system browser path.

Installation and Activation

The installation method given in the official README is as follows (not a command like dsh plugin add):

  1. Download dsh-deepseek-chat-1.0.0.zip from Releases.
  2. Extract it to local disk (avoid OneDrive or network drive paths).
  3. Double-click install.cmd in the extracted directory.
  4. Completely exit and reopen DSH Desktop.

After modifying the plugin source code, restarting DSH is required for changes in lib/client.js to take effect — the client script is injected into window.__DSH_BOOT__ at page startup, so hot reload will not see the client artifacts.

Typical Usage

  1. Open any session in DSH Desktop, click the bubble icon at the bottom of the sidebar to expand the menu.
  2. If you want to compare on the same screen as Harness, select Open in the right sidebar and complete login and conversation on the right; for a long-lived login state, select Open in the system browser.
  3. Once the conversation is ready, select Read the conversation from the right sidebar (sidebar path), or first copy the share link in the browser and then select Read the conversation from the system browser (browser path), to inject the content into the current session for continued orchestration or summarization.
  4. When you need to change the menu descriptions, select Customize tooltips, edit, and save.

Clicking the bubble again or pressing Esc collapses the menu. If any step fails, the plugin reports the error truthfully in the accessibility status region, without pretending to succeed.

Use Cases and Caveats

Who it’s for: Developers who mainly use Harness on DSH Desktop, are used to chatting on the DeepSeek web version, and want to reduce window switching and manual pasting.

Permissions and trust: The plugin runs with the permissions of the current DSH process; before installing, please read the source code and the MIT license, and understand the behavior that “reading” creates a public share link.

Stability: The reading capability depends on the web version’s internal APIs and DOM heuristics; site redesigns may cause it to fail; the README contains an explanation of “how failures manifest”.

Development and self-testing (for maintainers or secondary developers): Running npm test in the cloned repository runs 91 offline test cases; Node >=22 is required.

Conclusion

dsh-deepseek-chat consolidates the ways to open the DeepSeek web version and read conversations back into five sidebar options, clearly distinguishing between the Desktop right sidebar and the system browser, as well as between automatic reading and the semi-automatic clipboard path. The directory and metadata can be viewed on SkillHub: lumos0121/dsh-deepseek-chat; source code and installation packages are available on GitHub.

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

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

Xiaoye