dsh-tab-alert
其他 活跃维护

dsh-tab-alert

vemoos-b/dsh-tab-alert

监听后台标签页中智能体回合的完成状态,自动将页面标题闪烁为“新消息!”,无需切换窗口即可感知任务进度,并行处理多任务时也能快速捕捉到完成信号。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
5 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:vemoos-b/dsh-tab-alert
git clone https://github.com/vemoos-b/dsh-tab-alert.git
git clone git@github.com:vemoos-b/dsh-tab-alert.git
README.md main

dsh-tab-alert

DSH Web tab alert: when an agent turn finishes while the browser tab is in the background, the tab title flashes "New Message!"; returning to the tab stops it instantly.

中文

Behavior

  • Turn running: nothing happens.
  • Turn finished while the tab is hidden: the title alternates between New Message! and the original title every second.
  • User returns to the tab (visibilitychange): blinking stops immediately, the title is restored.
  • Turn finishes while the tab is visible: no blinking (the user already saw it).

Detection

Primary path uses the host client services (same contract as the official @deepseek-ai/dsh-client-ui-conversation):

ctx.sessions.list.getSnapshot().byId[mainViewSessionId].running

mainViewSessionId resolves the main-view session via retainedBy.mainView > 0; sessions.list changes trigger an immediate callback plus a 2s polling fallback. If the service is unavailable or the record lacks the running field, it falls back to the DOM check [data-chat-flow-kind="turn-process"] (the dsh-auto-collapse contract).

Install

dsh plugin add dsh-tab-alert        # from npm
# or from GitHub:
dsh plugin add github:vemoos-b/dsh-tab-alert

Enable dsh-tab-alert in Settings → Plugins and reload the web UI.

Compatibility

DSH 0.2.0-rc.2 (web client). MIT license.