Saltar al contenido principal
N

dsh-active-sessions

no1064/dsh-active-sessions

Sidebar panel that groups sessions into running, waiting on you, completed-unread and recent, each with a status badge.

Instalar

dsh plugin --profile web add github:no1064/dsh-active-sessions

README

活动会话 · Active Sessions

中文 | English

一个 DeepSeek Harness 侧栏面板,只回答一个问题:现在有什么在等我?

A sidebar panel for DeepSeek Harness that answers one question: what needs me right now?

活动会话面板

侧栏计数空状态
侧栏计数空状态

中文

显示什么

分组含义徽标
进行中会话本身或其子智能体仍在工作灰色转圈
待审核等待工具审批、计划审阅或用户回答琥珀色,并标出具体待办
已完成你在别处时会话已结束绿色
最近会话其余会话,按更新时间倒序无

点击会话会走 DSH 自己的导航,因此「完成未读」的绿色徽标和侧栏状态点一样会被清掉。

侧栏菜单行显示同一份汇总:每个非空状态一个圆形数字,位置紧跟文字之后。侧栏折叠成图标栏时,数字收敛成一个按优先级着色的圆点;三个状态都为空时不画任何徽标。

行为

  • 实时数据,不存状态。 订阅 sessions.list、workspaces.list 和 uiSession.sessionStatus,插件自身不保存任何数据。
  • 状态优先级与侧栏一致: 待审核 → 进行中(含仍在运行的子智能体)→ 完成未读 → 最近会话。
  • 标题固定,列表滚动。 三个状态面板高度固定,卡片在组内滚动;「最近会话」的标题不随列表滚动。
  • 按信息流加载。 最近会话先铺满可用空间,之后每次点「加载更多」追加 20 条。
  • 跟随主题配色。 状态颜色取自 DSH 自己的 token,明暗主题自动同步。
  • 过滤噪音。 空白草稿、子智能体会话和已归档会话不会出现。

安装

dsh plugin add @no1064/dsh-active-sessions
# 桌面端:
dsh plugin --profile desktop add @no1064/dsh-active-sessions
# 或者直接从 GitHub 安装:
dsh plugin add github:No1064/dsh-active-sessions

安装后重启一次应用,客户端模块图需要重新发布。

要求:DeepSeek Harness >=0.2.2-rc.5 <0.3.0,写在 engines.dsh 里,插件市场据此显示版本兼容性并参与筛选。

开发

node test/smoke.mjs

冒烟测试用最小 React 桩和假 Client Context 加载 client.js,覆盖槽位注册、分组优先级、完成未读清除、排序、分页、侧栏汇总与折叠行为。

许可

MIT


English

What it shows

GroupMeaningBadge
RunningThe session or one of its subagents is still workinggrey spinner
Waiting on youA tool approval, a plan review or a question is pendingamber, with the exact ask
Completed unreadThe session finished while you were elsewheregreen
RecentEverything else, newest firstnone

Opening a session marks it read through DSH's own navigation, so the green badge clears exactly like the sidebar dot does.

The sidebar row carries the same summary as counts: one circle per non-empty state, straight after the label. When the sidebar folds to the icon rail, the counts collapse into a single priority dot. With nothing to report, no badge is drawn at all.

How it behaves

  • Live data, no own state. Subscribes to sessions.list, workspaces.list and uiSession.sessionStatus; nothing is stored by the plugin.
  • Status priority follows the sidebar: pending interaction → running (including running subagents) → unread completion → recent.
  • Fixed header, scrolling list. The three status panels keep their height and scroll their cards inside; the 最近会话 heading stays put while only its rows scroll.
  • Feeds, not walls. The recent list fills the space it is given, then loads 20 more rows per click of 加载更多.
  • Theme-native colours. Status colours come from DSH's own tokens, so light and dark stay in sync.
  • Skips the noise. Blank drafts, subagent children and archived sessions never appear.

Install

dsh plugin add @no1064/dsh-active-sessions
# desktop app:
dsh plugin --profile desktop add @no1064/dsh-active-sessions
# or straight from GitHub:
dsh plugin add github:No1064/dsh-active-sessions

Then restart the app once so the client bundle is republished.

Requirements: DeepSeek Harness >=0.2.2-rc.5 <0.3.0, declared as engines.dsh so the plugin market can show compatibility and filter by it.

Development

node test/smoke.mjs

The smoke test loads client.js with a small React stub and a fake client context. It covers slot registration, group priority, unread clearing, recency ordering, paging, the sidebar summary and the fold behaviour.

License

MIT

Plugins relacionados