OpenViking
volcengine
Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:prgrmrwy/dsh-session-id-copy
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English · 简体中文

The badge sits right of the conversation title, and the copied hint appears under it after a click. Synthetic rendering of an isolated DSH header in English (that instance has no model credentials, so nothing here was recorded from a live session); title and id are demo data.
DSH shows a conversation's title but offers no way to copy its session id, which you need for logs, scripts, issue reports and dsh commands. This plugin puts a small six-character badge next to the title; one click copies the full session id and confirms it with a short hint.
What you get
DeepSeek Harness 0.2.0-rc.2, Node.js >=22.19.
# from npm — prebuilt, no build approval
dsh plugin --profile web add dsh-session-id-copy
# or from source — builds locally, approve the build when dsh asks
dsh plugin --profile web add prgrmrwy/dsh-session-id-copy
Restart DSH and refresh the Web page. There is nothing to configure.
data-dsh-session-id-copy-badge) appears to the right of the current conversation title. It shows the first six characters of the session id without its session- prefix: session-9af69be9-… becomes 9af69b.current in the official sessions list. The badge text and the copied value follow session switches and title changes. A blank session or the hero view has no title area, so there is no badge.disabled, cursor default, no click behaviour. Ancestor breadcrumbs keep opening their session and never copy.MutationObserver (subtree plus class changes) together with the sessions subscription drives a rAF-debounced reconcile: the badge is updated in place, rebuilt when the title cluster is rebuilt, and removed when no title area exists.How it is wired (re-check after DSH upgrades):
| Part | File | Responsibility |
|---|---|---|
| Official DOM seam | src/client/title-locator.ts |
finds the breadcrumb nav inside the title cluster; the only file that knows the official structure |
| Badge and interaction | src/client/wiring.ts |
own marker, inline styles, tooltip, clipboard call and the transient hint |
| Reconciliation | src/client/index.ts |
sessions subscription, observer, rAF debounce, cleanup |
| Hint copy | src/client/locales.ts |
the hint label for the active UI language |
| Host entry | src/index.ts |
no-op loader entry (see Boundaries & safety) |
Version 0.1.0 made the session title itself click-to-copy. Since 0.1.1 the interaction lives on the badge instead, because a breadcrumb is a navigation control and overriding it was not discoverable.
None. The plugin row carries no config fields and the package reads no environment variables.
src/index.ts) is an empty loader entry. It exists for one structural reason: the bundle row imports the package at boot, and being that entry is what makes the browser bundle reachable. It has no network, filesystem or session side effects.navigator.clipboard on click. It keeps no localStorage, no cookies and no files; nothing is uploaded.@deepseek-ai/cordis, @deepseek-ai/dsh-api-session-controller and @deepseek-ai/dsh-client-locale, all at the running DSH version.lib/ is a gitignored build artifact. In a standalone checkout:
npm install
npm run typecheck
npm test
npm run build
In the ohmydsh monorepo this package is a workspace member: install once at the repository root and add --workspace dsh-session-id-copy to the last three commands. dsh build / sync also builds lib/ on demand before installing the local package; refresh the Web page to pick up a new client bundle.
When the official structure changes, only src/client/title-locator.ts should need a fix; the wiring tests assert the badge, clipboard and hint behaviour without a browser.
dsh plugin --profile web remove dsh-session-id-copy
Restart DSH and refresh the page; the badge disappears. The plugin keeps no settings or files of its own, and no data is left behind.
This plugin is developed in ohmydsh (packages/session-title-copy); this repository is its release mirror, published to npm and GitHub Releases automatically. Current behaviour is specified in openspec/specs/session-title-copy; design history lives in the archived changes session-title-copy and session-title-id-badge.
Code is MIT. Issues and pull requests are welcome at prgrmrwy/dsh-session-id-copy.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: clipboard。