返回目录
模型与 MCP 插件

dsh-tab-alert

vemoos-b/dsh-tab-alert

Flash tab title "New Message!" when an agent turn completes in a background tab.

Stars
0
Forks
0
Issues
0
更新
1 个月前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:vemoos-b/dsh-tab-alert

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

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.

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度中

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。