给会话「...」菜单加一行「标为未读」,并在会话行前显示一颗读后自动消失的绿点。它的 HTTP 路由没有 DSH 的访问检查,浏览器里打开的网页可以调用它们。
安装
# Release 预构建包
dsh plugin --profile web add -w "https://github.com/Refreshing-CZQ/dsh-mark-unread/releases/download/v1.1.0/dsh-mark-unread-1.1.0.tgz"
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:Refreshing-CZQ/dsh-mark-unread
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
Mark as unread for DeepSeek Harness sessions — one extra row in every Session's ... menu, and a dot that behaves exactly like the shipped completion dot.
中文说明见下方 中文。
Why
DeepSeek Harness grows a green dot on a Session row when a background Session finishes, and drops that dot the moment you open the Session. There is no way to put the dot back, so a Session you deliberately postponed — or one whose answer you still have to act on — cannot be flagged for later. Starring and pinning both change the sidebar's order, which is not what "remind me about this one" means.
This bundle adds the missing action. It writes nothing into the Session log, touches no Session data, and makes no network request off your machine.
What you get
| Where | What |
|---|---|
Session ... menu, between Pin and Rename (order 150) |
A Mark as unread row. Choose it again (Mark as read) to clear the mark by hand. |
| Session row, in the 16px cell before the title | A green dot: same 10px box and 6px solid core as the shipped completion dot, painted with --dsw-alias-state-success-primary. |
| Opening the Session | The dot clears itself. The mark is consumed by the same signal the shipped dot uses (retainedBy.mainView > 0), so the two dots disappear at the same moment. |
Two details worth knowing:
- Marking the Session you are reading right now keeps the dot visible instead of eating it immediately. It clears when you switch away and come back, so the click always has visible feedback.
- Marks are personal UI state. They live in
~/.dsh/mark-unread/state.json(or$DSH_PROFILE_DIR/mark-unread/state.jsonwhen that variable is set), survive a restart, and are never mixed into Session data.
Install
From the plugin market: open the Plugins page, find this entry, install it, then reload the page.
By spec, from the same machine DSH runs on:
dsh plugin --profile desktop add github:Refreshing-CZQ/dsh-mark-unread
Swap desktop for the profile you actually run. A release tarball works the same way:
dsh plugin --profile desktop add https://github.com/Refreshing-CZQ/dsh-mark-unread/releases/download/v1.1.0/dsh-mark-unread-1.1.0.tgz
An already-running GUI picks up the browser half on reload (Ctrl+R); the host half needs a restart only when this plugin's host code changes.
How it works
Two Slot contributions on seats the sidebar browser already declares:
sidebar.workspaces.session.menu.item,order: 150— the menu row. It reads the shippeduseMenuOpenState()injected hook to close the menu before it toggles, the same way the shipped rows do.sidebar.session.row.leading— the dot. That seat is the 16px cell the row's own state dot otherwise occupies, and it is mounted only while the row's primary state is idle, so the two dots never render side by side.
The browser half holds the marks in memory and talks to this bundle's own host half over one private same-origin route:
GET /_dsh/mark-unreadreturns the stored ids.POST /_dsh/mark-unreadtakes{ sessionId, unread }and requires thex-dsh-mark-unread: 1header, so a cross-site form post cannot write it.- Storage is one JSON file, atomically replaced, capped at 400 ids.
Routing the store through the host is deliberate: the Web GUI binds an OS-assigned port, so its origin — and therefore localStorage — changes between launches. A mark kept in localStorage would not survive a restart.
The browser half imports no Harness client package. Row markup and metrics follow the shipped menu row (34px minimum height, 6px 8px padding, 6px gap, radius and hover from --dsw-alias-* tokens), and all visible text goes through the client locale service in zh and en.
Compatibility
- Declares
engines.dsh: >=0.2.0; uses only thesidebar.workspaces.session.menu.itemandsidebar.session.row.leadingseats and the standarduseSessionRetainInfo/useMenuOpenStatehooks. - Colors come from
--dsw-alias-*theme tokens, so light and dark themes both work. - Web GUI and DSH Desktop NEXT. No native dependency, no build step.
Uninstall
dsh plugin --profile desktop remove dsh-mark-unread
Or switch it off on the Plugins page. Marks live in one file; delete ~/.dsh/mark-unread/ to drop them too.
License
MIT.
中文说明
给 DSH 会话的「...」菜单加一行「标为未读」,并在会话行前显示一颗绿点。
- 为什么要有:DSH 会在后台会话跑完时给会话行点一颗绿点,你打开会话它就消失,但没有办法把它重新点回来。想标记「这个我待会儿还要接着处理」时,只能置顶或加星,而那会打乱侧边栏顺序。
- 点在哪:菜单里在「置顶会话」和「重命名」之间;圆点在标题前那格 16px 的空位,几何和颜色都跟原生完成点一致(10px 盒子 + 6px 实心核,取
--dsw-alias-state-success-primary)。 - 什么时候消失:打开会话就消失,用的是原生那颗点同一个「正在看」信号(
retainedBy.mainView > 0)。给正在看的会话标未读时,圆点先留着,等你切走再切回来才被消费,避免点了没反馈。 - 存在哪:
~/.dsh/mark-unread/state.json(设置了DSH_PROFILE_DIR时在 profile 目录下),重启仍在。这是你自己的界面状态,不写进会话日志,也不上传到任何地方。 - 怎么装:插件页里搜索本插件安装,或者
dsh plugin --profile desktop add github:Refreshing-CZQ/dsh-mark-unread,把desktop换成你实际用的 profile。装完刷新页面(Ctrl+R)。 - 怎么卸:
dsh plugin --profile desktop remove dsh-mark-unread,或在插件页关掉。
链接
同类插件
zhu1090093659/dsh-web#packages/dsh-task-board★ 10645
侧边栏多列任务看板:卡片交给真实 DSH 智能体会话执行,支持 cron 定时(Host 侧到点执行,关浏览器也生效)。
zhu1090093659/dsh-web#packages/dsh-web-all★ 10645
DSH Web UI 插件与皮肤合集:任务看板、git 图、右侧面板、远程移动端 UI、桌宠、实时 token 统计与皮肤中心。
ccch1mneyyy/dsh-TUI★ 8283
Claude Code 风格全屏终端 UI:像素鲸鱼顶栏、实时工作状态行、思考流式展开。
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 7472
右下角常驻的小鲸鱼挂件:余额、今日已用与每轮对话消耗(含峰谷价),余额预警与今日预算的泡泡内容都可编辑;泡泡点击序列模块化自定义,支持并列加权 A/B、随机台词与随机图片;内置 30+ 厂商模板(OpenAI / OpenRouter / Kimi / 硅基流动 / 方舟 / 智谱 / MiniMax 等),按模型查余额与订阅额度;另有任务结束音效、导入音频、自定义角色与资源管理。数据全在本机,无遥测。
omdsh-dev/DSH-better-sidebar★ 5336
侧边栏完整工作台:内置文件渲染编辑、终端、Git 与子代理,支持三方插件注册新 Tab。
omdsh-dev/dsh-genui★ 1060
助手回复内渲染交互式 UI 组件:布局、图表、表单、测验、mermaid、3D 场景与回传事件循环。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。