Durable, reversible installer that patches DSH Desktop session-reference UX — workspace-prioritized @ candidates, title-first display, two-line menu layout, and sidebar drag-to-composer session references.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:melt502/DSH-Session-Reference-UX-Patch
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
独立、可回滚的 DSH Desktop 安装态补丁插件。它保存经过验证的 5 个插件产物,并在 DSH Host 启动时检查/重新应用,防止 Desktop 或相关包更新静默覆盖修改。
当前版本适配 DSH 上游 0.1.2-rc.1(2026‑08‑29 重构:conversation 输入改为 Lexical editor、session-reference 预览标题改为投影读取、候选新增 sameWorkspace 字段)。
功能
- 空
@只查询当前工作区 Session;查询非空时仍跨全部工作区搜索。 - 空查询把文件/Session 候选各限制为 8 个,菜单打开更快。
- Session 候选主行就是对话标题,无标题时回退到 Session ID(空白标题也回退)。
@候选使用两行布局(标题 + 副行),副行带完整描述悬停提示。- 侧边栏 Session 可拖入输入区形成原子引用(
keyboard.insertReference+ Lexical caret span)。 - 拖放与侧边栏排序隔离:命中输入区
dropEffect='copy'不触发行重排。 - 校验 canonical mention、拒绝自引用、最多 3 个不同 Session。
命令
cd dsh-session-reference-ux-patch
node bin\patch.mjs doctor
node bin\patch.mjs apply
node bin\patch.mjs restore
可用 DSH_DESKTOP_UNPACKED 覆盖 DSH 安装根目录;默认:
D:\dsh\DSH Desktop\resources\app.asar.unpacked
安装到 web profile
在 <DSH_HOME>\profiles\web\package.json(例如 %USERPROFILE%\.dsh\profiles\web\package.json)中加入:
"dsh-session-reference-ux-patch": "link:<repo-path>"
并将 dsh-session-reference-ux-patch 加入 dsh.profile.bundles。随后重启 DSH Desktop。
更新后的行为
启动时插件运行 apply --quiet:
- 文件未变化:不写盘。
- 上游更新覆盖目标:先按 SHA-256 保存新上游文件到
patches/backups/,再应用模板。 - 上游大改导致模板不兼容:插件不会自动知道语义变化;应运行
doctor、语法检查并人工回归。模板是完整编译产物,因此适配新 DSH 版本时应重新生成,不建议长期跨大版本强制覆盖。
版本历史
- 0.2.0 — 适配 DSH 0.1.2‑rc.1:重写全部 5 个补丁到新上游基线上;沿用空查询工作区过滤与 8 个限制、两行布局、拖放引用;借助上游新的投影标题/
sameWorkspace减少宿主端改动。 - 0.1.0 — 初始版本(旧上游基线)。
回滚
执行 restore,然后从 profile 的 bundles/dependencies 删除本插件并重启 DSH Desktop。
注意
本插件把安装态热修复变成可重复、可检测、可回滚的补丁,但并不等同于上游源码合并。目标包跨版本更新后仍需兼容性复核。
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 8978
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 8978
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 5292
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
ccch1mneyyy/dsh-TUI★ 4819
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
omdsh-dev/DSH-better-sidebar★ 4290
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
Devin-AXIS/deepseek-design#deepseek-idesign★ 1478
Visual design studio for websites, app prototypes, posters, cards, reports, and magazines, with templates, direct element editing, selection-aware AI draft handoff, and export.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.