railgun20001/dsh-session-hub ↗★ 0

dsh-session-status-hub

状态栏汇总会话状态并提供系统通知 适合多会话并发运行,需要及时获取任务完成、报错或提问反馈的用户。

套件
dsh-session-status-hub
相容性
待驗證
版本
0.1.0
授權
MIT
最近更新
2026年10月26日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:railgun20001/dsh-session-hub

Configuration

Config lives in localStorage under dsh-session-hub/config-v1; defaults are already "don't disturb me":

KeyDefaultMeaning
enabledtrueMaster switch (watermarks keep advancing; re-enabling never replays history)
onComplete / onFailure / onAnswertruecompleted / failed / needs your response
onMaxTokenstrueoutput-limit hits
onStoppedfalsemanual stop / interrupt
includeSubagentsfalsealso notify and list subagent Sessions
silenceCurrentWhenFocusedtruestay silent for the Session you are currently reading
silenceAllWhenFocusedfalsenever notify while the window is focused
requireVisibleForFocustrueminimized/hidden counts as unfocused (notify anyway)
freshnessWindowMs120000edges older than this only advance watermarks (0 disables)
soundtruesystem notification sound
colorMarkerstruecolour emoji in notification titles
colorMarkerstruecolour emoji in notification titles
raiseWindowtruebring the desktop window forward on notification click
maxRememberedSessions300cap on the notification watermark table (newest by updatedAt kept)

Alongside config-v1, the plugin keeps a few state keys under the same prefix — worth knowing when troubleshooting, migrating or wiping data:

KeyContents
watermarks-v1notification watermarks: how far each Session has been consumed
error-acks-v1acknowledged failures { sessionId: seq } (what turns the red chip off)
local-unread-v1plugin-recorded "finished in background, unseen" { sessionId: seq }
recent-v1cross-tab dedupe window (4 s)
notify-log-v1last 20 notification landing results

From the DSH DevTools console:

__DSH_SESSION_HUB__.getConfig()
__DSH_SESSION_HUB__.setConfig({ silenceAllWhenFocused: true })

enabled / onComplete only mute notifications — the unread dot and the taskbar mark are state facts ("this turn finished and you haven't looked"), not interruptions.