DeepSHPlugins
dsh-deeplink 项目预览
GITHUB / COMMUNITY PROJECT

dsh-deeplink

UI 增强JavaScriptMIT

DSH WebUI 深链插件:?session=/?workspace= 直接打开指定项目对话

4 Starsqyw233 更新时间 2026-08-29
访问 GitHub 仓库
dsh-deeplink 项目预览

项目介绍

中文

DSH WebUI 深链插件:?session=/?workspace= 直接打开指定项目对话

English

Deeplinks for the DSH WebUI: ?session= / ?workspace= open the given project conversation directly.

项目信息与收录信号

快照 2026-09-11
作者 / 组织
qyw233
仓库
qyw233/dsh-deeplink
GitHub Stars
4
Forks
0
开发语言
JavaScript
许可证
MIT
最近推送
2026-08-29
Manifest
数据中检测到声明

公开仓库不自动等于可商用;许可证与当前兼容性以原项目文档为准。Manifest 和数据评分不构成安装安全认证。

数据评分

61/ 100
维护活跃
92
文档与实用信息
99
生态关注度
20
安装便捷信号
75
项目声明信号
100

近 13 天仍在更新;README 含完整安装与使用说明;关注度尚低(4)。

评分来自已有数据快照的五维模型,仅作浏览参考,不是实际使用评测或安全检测结论。

安装与使用

所有项目资料与许可均以对应 GitHub 仓库为准。

dsh plugin add github:qyw233/dsh-deeplink

复制命令不会自动执行。请先阅读仓库文档,确认环境要求与许可证。

项目截图

仓库 README

GitHub 原文

已保存的仓库文档快照;文档抓取时间未记录,可能与上方目录介绍处于不同版本。安装前请核对当前仓库说明。

A DeepSeek Harness Web UI plugin that opens a specific project conversation directly from a URL query parameter, instead of always returning to the last session.

  • ?session=<session-id> → open that conversation
  • ?workspace=<workspace-id> → open that project's latest/blank conversation
  • Persistent links: the address bar follows the current conversation, so you can copy/bookmark/share the link at any time
  • Settings toggles to enable/disable jumping and address-bar following independently
  • Ships a model prompt section so the model surfaces clickable deep links when a reply refers to another conversation or project

License: MIT

  • Reads ?session= / ?workspace= from the page URL and switches once the session/workspace list baseline is ready
  • session wins when both parameters are present
  • When the target session/workspace does not exist (or is archived/hidden), it silently falls back to the default behavior (restore the last session) — no errors, no impact on the page
  • Persistent links: whenever the current session changes (deep-link switch or a manual switch in the UI), the address bar is rewritten to ?session=<current-session-id> via history.replaceState; when no session is current, the parameters are cleared. No history pollution, no reload
  • Settings toggles: two independent switches (设置 → 插件 → 插件配置, shown as a card via the official settings.plugin.item slot, keyed by the dsh-deeplink settings namespace) — jump (process ?session=/?workspace= on load, default on) and follow (address-bar following, default on), both persisted in localStorage
  • The node half registers a global prompt section so the model knows deep links exist and can attach links when a reply refers to other conversations/projects
  • Pure browser half + a lightweight node half; no cordis import, no peerDependencies

The plugin is installed into a profile via the standard dsh plugin mechanism — no DSH source changes required.

# Official profile (ships dsh-base + dsh-web-app, which provide the systemPrompt/webServer services):
dsh plugin --profile web add github:qyw233/dsh-deeplink
# Or a local checkout:
dsh plugin --profile web add /path/to/dsh-deeplink

The repository ships its build output (lib/ is committed), so no additional build step is required after install.

After installing, restart the Web UI and refresh the browser page. The plugin appears in the browser boot graph (__DSH_BOOT__).

Append query parameters to the WebUI URL:

ParameterMeaningExample
?session=<session-id>Open that conversationhttp://127.0.0.1:3080/?session=session-304ae36e-1e66-453a-a946-2b0a9a2b173d
?workspace=<workspace-id>Open that project's latest/blank conversationhttp://127.0.0.1:3080/?workspace=fc8b75ae-107c-4b6c-978c-276270b03b8b

New window/tab behavior:

  • Clicking a deep link inside a conversation: the GUI's markdown renderer adds target="_blank" to all http(s) links, so a new tab opens and the plugin switches THAT tab to the target conversation.
  • Pasting ?session=... into the current tab's address bar and pressing Enter: the current page switches.

Persistent links:

  • After a deep link opens, the address bar updates to ?session=<actual-session-id> (the workspace parameter is consumed and removed).
  • Manually switching conversations in the UI updates the address bar the same way.
  • Switching to the "no session / new" state clears the parameters and returns the address bar to /.
  • Updates use history.replaceState, so each conversation is not left in the browser back/forward history.

The plugin registers a 深链 card in the 插件配置 tab (设置 → 插件 → 插件配置, via the official settings.plugin.item slot, keyed by the dsh-deeplink settings namespace registered on the host) with two independent toggles (both default on, persisted in localStorage):

ToggleKeyEffect
跳转到指定对话dsh-deeplink.jumpProcess ?session= / ?workspace= deep links on page load. Read once per load — toggle it before opening a deep link.
地址栏跟随dsh-deeplink.followKeep the address bar following the current session. Read on every sync, so toggling takes effect immediately.

The node half registers a global prompt section (plugin:dsh-deeplink, order −97, after web-surface and before persona) that tells the model:

  • This GUI supports ?session= / ?workspace= deep links (a click opens them in a new tab);
  • When a reply refers to another conversation or project (an earlier discussion, a different workspace, a follow-up of another session), attach the corresponding link so the user can jump there in one click;
  • How to discover real ids: read $DSH_HOME/storages/workspace.json (the keys of tables.workspaces are workspace ids; each record's sessionIds lists its session ids), or list $DSH_HOME/sessions/<project>/ directories (each directory name is a session id);
  • Only emit ids that actually exist; never invent one.
  • Session id: the directory name under ~/.dsh/sessions/--<project>--/<session-id>/; or tables.workspaces[].sessionIds in ~/.dsh/storages/workspace.json.
  • Workspace id: the key (UUID) of tables.workspaces in ~/.dsh/storages/workspace.json.
  • Browser half lib/client.js: changes are picked up by the running server's HMR (stat-poll, ~0.5s); refresh the page to see them.
  • Node half lib/index.js: changes require restarting dsh web.
  • This plugin has no build step; lib/ is authored directly.

The browser half is pure client: no cordis import, no peerDependencies, and depends only on the runtime-provided sessions / workspaces services and their list snapshots. The node half depends on the systemPrompt / webServer services (both provided by the dsh-base and web compositions). It has been adapted to the httpServer → webServer service rename and ships a dsh.bundle declaration (cordis.patch.yml) for the newer dsh plugin bundle mechanism.

MIT · Copyright (c) 2026 DSH Community Contributors

  • The 深链 settings (two toggles) now appear in 设置 → 插件 → 插件配置 as a collapsible card, next to 终端 / Agent 循环 / 网页搜索, rendered through the official settings.plugin.item slot and keyed by the dsh-deeplink settings namespace (same structure and YyYd_a_* classes as the built-in PluginCard).
  • The node half registers the namespace via installSettingsSection with a schemastery schema; card toggles still persist in localStorage.
  • Dependency links (schemastery, dsh-settings) are git-ignored — install via dsh plugin --profile web add github:qyw233/dsh-deeplink which links them at runtime.
  • Added a 深链 section in Settings with two independent toggles: jump (deep-link jump, default on) and follow (address-bar following, default on), both persisted in localStorage.
  • Address bar follows the current session: after a deep-link switch or a manual switch, the URL is rewritten to ?session=<current-session-id> via history.replaceState; cleared when no session is current. No history pollution, no reload.
  • Adapted to the httpServer → webServer service rename.
  • Added the dsh.bundle declaration and cordis.patch.yml for the newer dsh plugin bundle mechanism.
  • Reverted the &new=1 window.open logic (the renderer already forces _blank on http links, so new would open two windows).
  • Prompt and README aligned: a deep-link click opens a new tab.
  • (Reverted) &new=1 new-window mode.
  • Node half registers the plugin:dsh-deeplink prompt section so the model knows deep links exist and can attach links when referring to other conversations/projects.
  • ?session= / ?workspace= deep-link support; unknown targets fall back silently; read-only, never rewrites the URL.

使用前核对

安装步骤、兼容版本与授权范围以原项目当前文档为准。Stars 和评分是快照中的导航信号。

安装与排错 · 项目问题反馈

同类项目