Bundle
dsh-copy-session-id
Show the current session ID in the session header and copy it to the clipboard with one click
- Source
- Hanihahaha
- stars
- 1 stars
- License
- MIT
- Updated
- Updated 6 days ago
Readme
# dsh-copy-session-id
[中文](README.zh.md)
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
```powershell
# Run from the repository root.
dsh plugin --profile web add ".\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
Install
dsh plugin --profile web add github:Hanihahaha/dsh-copy-session-id
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install dsh-copy-session-id from the hub
- This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.