LucienLL/dsh-session-status

DSH 对话状态标签插件:给每个对话设置项目状态(进行中/已结项/搁置中 + 自定义标签/icon),会话列表与头部可见,跨浏览器持久化

Project Overview项目介绍

This is a native plugin built exclusively for DeepSeek Harness (DSH) that adds customizable status tagging functionality to DSH conversations. It ships with three default statuses—In Progress, Completed, and On Hold—that let users quickly categorize their active work conversations, and it also supports fully custom status tags with custom names, any hex color, and icons. You can install it via the DSH CLI by running dsh plugin --profile web add dsh-session-status, or you can install it through the plugin management page in DSH’s web UI, and after installation you just need to restart dsh web to start using the plugin immediately.

When you open any conversation after installation, a status pill will appear in the top right corner of the conversation header. Clicking the pill cycles through the three built-in statuses, or you can click the arrow on the right side of the pill to open a dropdown menu where you can select any custom status or clear the current status entirely. On the sidebar session list, a small colored status dot appears next to each session title, and when you hover over a session row, the status label is displayed alongside DSH’s native idle/running status in the hover card. This plugin is ideal for users who manage multiple ongoing projects inside DSH and want to quickly sort and filter their conversations by project status.

All status data is stored locally in the host’s settings document under the dsh-session-status namespace, so it persists across browser restarts and device switches without any extra synchronization work from the user. You can adjust the colors of the three built-in statuses and manage custom tags (add, edit, delete) from the dedicated session status settings page, where you can also reset colors to their default values with a single click. The plugin is released under the permissive MIT open source license, and it includes full unit tests and smoke testing scripts for contributors who want to modify or extend its core functionality.

这是一个专为 DeepSeek Harness 开发的原生插件,用于给 DSH 的每个对话添加项目状态标签。插件内置「进行中 / 已结项 / 搁置中」三种状态,支持调整颜色,同时允许用户自定义标签,可设置自定义名称、任意十六进制颜色和图标。可以通过 DSH CLI 命令安装,也可以在 Web UI 的插件管理页面安装,安装完成后重启 dsh web 即可使用。

日常使用时,打开任意对话后,头部右侧会出现状态标签块,点击即可循环切换三种内置状态,也可以点击标签块右侧的箭头下拉选择任意标签或清除状态。侧边栏的会话列表会在每行标题前显示对应颜色的状态点,悬停任意会话行时,状态标签会和 DSH 原生的「空闲/运行中」状态并列显示在悬浮卡中,方便用户快速浏览区分会话状态。

插件的状态数据会保存在宿主端的 settings 文档中,使用 dsh-session-status 命名空间,跨浏览器重启也不会丢失数据。用户可以在设置页的「会话状态」页面调整内置三态的颜色,也可以增删改自定义标签,支持色板选择或自定义十六进制颜色值。插件采用 MIT 许可证开源,提供了完整的单元测试和开发流程文档,方便开发者二次修改和调试功能。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add dsh-session-status

把 LucienLL/dsh-session-status 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-session-status

给每个 DSH 对话设置项目状态标签:内置「进行中 / 已结项 / 搁置中」三态(颜色可调)+ 可自定义标签(名称 + 色板 + 任意 hex 颜色 + 图标)。

  • 会话列表最小可见:每行行首显示状态点(无状态不占位)。
  • 会话 hover 卡:悬停会话行时,插件状态标签与 DSH 原生「空闲/运行中」并列显示。
  • 对话内头部角落:状态 pill 单击快速循环三态(进行中 → 已结项 → 搁置中 → 无),pill 右侧箭头展开下拉选择任意标签/清除。
  • 跨会话/跨浏览器持久化:数据存于 host 端 settings 文档(dsh-session-status namespace),换浏览器/重启不丢。
  • 设置页:内置三态名称固定、颜色可调(8 色板,点默认色或「恢复默认」复位);自定义标签可增删改(名称、色板或任意 #RRGGBB 颜色、图标)。

安装

dsh plugin --profile web add dsh-session-status

或通过 Web UI 的插件管理安装。装完重启 dsh web 后即可在会话头部看到状态 pill。

使用

  1. 打开任意对话 → 头部右侧出现状态 pill(● 未设置状态)→ 单击 pill 快速循环「进行中 → 已结项 → 搁置中 → 无」,或点 pill 右侧箭头从下拉中选择任意标签/清除。
  2. 会话列表(侧栏)每行标题前出现对应颜色的状态点;悬停会话行,hover 卡中与「空闲/运行中」并列显示插件状态标签。
  3. 设置 → 「会话状态」页:调整内置三态颜色(点默认色或「恢复默认」复位);添加/重命名/改色/换图标/删除自定义标签,颜色支持色板或任意 #RRGGBB(#RGB 简写亦可)。

数据模型

settings namespace dsh-session-status:

{
  "labels": [   // 自定义标签(内置三态作为 composition base,用户层不含)
    { "key": "todo", "name": "待办", "color": "#ef4444", "icon": "tag", "builtin": false }
  ],
  "sessions": { "<sessionId>": "active" },   // 会话 → 标签 key
  "overrides": { "active": { "color": "#ff00ff" } }   // 内置三态颜色覆盖(可选,不写用默认色)
}

开发

node --check lib\index.js; node --check lib\status-store.js; node --check lib\client.js
node test\status-store.test.mjs     # 纯逻辑单测(主模块方式,沙箱下勿用 node --test)
node test\client-shape.test.mjs     # client bundle 契约:inject 是服务名 + 内联逻辑防漂移
node scripts\smoke-hover.mjs        # CDP 冒烟:hover 卡状态注入 + 设置页色板(需 DSH GUI 在 127.0.0.1:3180)

发布(交互终端,WebAuthn 通行密钥流程;需先配置 npm token:NPM_PUBLISH_TOKEN 或 ~/.dsh/secrets/npm-token.txt):

pwsh -File scripts\publish-interactive.ps1

实现要点

  • 双轨制:package.json 的 dsh.client.inject 写 NPM 包名;浏览器 bundle(lib/client.js)的 exports.inject 写 Cordis 服务名(slots / settingsScope / sessions)——写错会导致 web boot 永久 pending。
  • 列表行无官方槽:行级状态点走 DOM 注入([role="treeitem"][aria-selected] + 标题反查 session id + MutationObserver/RAF 节流),data-owner 标记自清理;标题重复行宁可漏不可错。
  • hover 卡无官方槽:会话 hover 卡是 portal 到 body 的复制卡(div[role="button"] + 内联 left/top 定位),按标题反查唯一会话,把状态行追加进卡内容列;无状态/标题重复不注入。
  • 内置态不可删:settings 的 mergeLayers 对数组是整体替换,用户写入 labels 后 resolved 不再含 base 内置项——客户端 resolveLabels 始终把内置三态合并回来;内置颜色覆盖存于 user 层 overrides,点默认色即清除。
  • 惰性清理:会话归档/删除后,其 sessions 条目在下次写入时自动剔除;空映射 unset 不落盘。

相关插件

  • dsh-session-memo:对话侧边备忘录(GitHub 同步状态 / npm 发布状态 / 项目版本 / 备忘标签),与本站状态标签弱联动(面板头部显示并可切换)。

License

MIT

← 上一个 Prev dsh-genome 下一个 Next dsh-custom-css →