Hanihahaha/dsh-copy-session-id0

dsh-copy-session-id

在会话头部显示当前会话 ID 并支持一键复制到剪贴板

AI 分析

核心用途是在 DSH 界面顶部直观展示缩短的会话 ID,点击即可复制完整值。适合需要频繁获取会话 ID 进行调试或同步的用户。

套件
dsh-copy-session-id
版本
0.1.0
最近更新
2026年8月17日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Hanihahaha/dsh-copy-session-id

dsh-copy-session-id

中文

A DeepSeek Harness (DSH) Web plugin that displays the current session ID in the session header and copies the complete value to the clipboard on click.

Behavior

  • Displays a compact monospace session-ID control beside the title, truncating long values visually.
  • Copies the complete ID with one click and shows a short confirmation state.
  • Localizes its tooltip for Chinese and English interfaces.

Install

# Run from the repository root.
dsh plugin --profile web add ".\packages\dsh-copy-session-id"

The package bundle patch inserts copy-session-id, while dsh.client exposes lib/client.js through the DSH Web boot graph. Restart dsh web after installation.

Implementation

The client registers in the conversation.session.header.actions session slot. It receives the stable sessionId from the framework, copies with navigator.clipboard.writeText, and falls back to document.execCommand('copy') when necessary. The host half intentionally has an empty apply function so Loader keeps the client module active.

License

MIT