Skip to main content

How to use dsh-share

Exports single-round or multi-round Q&A from DSH Web conversations as PNG images or Markdown. Supports multiple selection, adjustable width and font size, and Chinese/English.

This article is auto-derived from indexed fields (wiki / faq / compatibility_json), not freshly AI-generated.

This article is derived from the plugin's already-indexed fields (wiki / faq / compatibility_json / readme), not freshly generated by AI. Source field is noted at the end of each section.

Quick start

dsh-share

— source: plugin_wiki.wiki_content

Install & verify

dsh plugin --profile web add dsh-share

Run the command above in your DSH Web Profile. Then enable the plugin in the plugin list.

— source: plugins.install

Key points

  • 从右上角进入问答选择模式,默认全选
  • 每轮的分享按钮也会进入选择模式,并只预选当前问答
  • 问题和回答两侧都有联动勾选框,也可直接点击内容整组选择,支持不连续选择
  • 勾选框会在长内容滚动时吸附在页面上,到当前问题或回答末尾再移出
  • 可复制图片、下载 PNG 或 Markdown

— source: plugin_wiki.readme_en (fallback readme_raw)

FAQ

Where can I find the share entry after installation?

Will appear in two places: a circular share button below each Q&A (click only pre-selects the current Q&A to enter selection mode), and a share button at the top right of the session (click enters selection mode and defaults to selecting all currently loaded Q&As). Both entry points will pop up a multi-select bottom bar, and will not scan or rewrite the DSH official button bar.

Can I hide the thinking process, tool calls, and intermediate steps in exported images?

Yes. There's a "don't show process" toggle in the preview popup; when enabled, each answer only keeps the final answer step, and tool calls and intermediate steps are removed from both images and Markdown, with user messages unaffected. The toggle saves to browser localStorage and automatically restores on next open.

What to do if copying image to clipboard fails?

The "Copy Image" button relies on the browser's Clipboard API and ClipboardItem. If the browser doesn't support this, permissions are denied, or the current page is a non-secure context, the status bar will show "Current browser doesn't support copying images, please download PNG" or "Copy failed, please download PNG". Use the "Download Image" button instead to get the PNG file, with filename dsh-share-YYYYMMDD-HHMMSS.png.

Will the plugin read or modify DSH's official button bar or conversation DOM?

No. The share entry only mounts to DSH official slots conversation.chat.assistant-actions and conversation.session.header.utilities; the selection mode adds checkboxes through stable data-* attributes (like data-chat-flow-kind, data-turn-tail, data-conversation-scroll), does not rely on CSS Module generated class names, and does not scan or modify the button bar DOM.

Can I only select old Q&As outside the top of the page that haven't been rendered yet?

No. The multi-select mode can only choose between rounds that have already been rendered and loaded on the current conversation page; to access earlier content, first scroll up to let DSH load those Q&As into the DOM, then enter the share selection mode to check them.

Where are the settings (width, font size, hide process) saved?

Saved in the current browser's localStorage, with keys dsh-share.width, dsh-share.font-size, and dsh-share.hide-process. In private/incognito mode or when localStorage is disabled by the browser, settings only take effect for the current session and will revert to defaults next time opened, but the sharing feature itself still works normally.

Will uninstalling the plugin affect already exported PNG or Markdown files?

No. Exported files are already on the user's local machine; uninstalling the plugin only affects whether the DSH web end displays the share button. When no longer needed, uninstall via dsh plugin --profile web remove. The exported images and Markdown files are not affected.

What platforms does the plugin support? Does it need local native modules?

Only runs as a DSH Web client plugin in the browser, with no dependency on any native modules; as long as the DSH Web Profile is working and the browser supports dialog.showModal and (optionally) ClipboardItem, it can be used on Windows / macOS / Linux desktops.

— source: plugin_wiki.faq_json

Compatibility

  • DSH: ^0.1.0-rc.6
  • Node: ^22.19.0 || >=24.0.0

— source: plugin_wiki.compatibility_json

Pitfalls

Review the upstream repo before installing. This guide is auto-derived from indexed fields and may lag the latest release. If anything contradicts the official docs, treat the upstream source as authoritative.

— source: general rule