Windows 11 x64 上的 DSH 悬浮玻璃状态栏:常驻胶囊显示本地 DSH web profile 的会话进度、当前步骤与待处理审批,可展开速览与详情;审批卡在 DSH 返回正式回执前保持只读,连接官方 Desktop 应用属实验性、未验收。
安装
# npm 包(预构建)
dsh plugin --profile web add dsh-status-bar-plugin
# Release 预构建包
dsh plugin --profile web add -w "https://github.com/wfz2006/dsh-status-bar/releases/latest/download/dsh-status-bar.tgz"
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:wfz2006/dsh-status-bar#path:/packages/dsh-status-bar
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。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
该插件的 README 只有英文版本。
DSH bundle for DSH Status Bar — a floating glass status bar for DeepSeek Harness.
The npm name and the bundle row id are dsh-status-bar-plugin. npm already hosts an unrelated dsh-statusbar, so the registry rejects the shorter name as too similar.
What it does
The plugin mounts one host row in DSH. At boot it waits for the local web server,
asks the connection service for the authenticated host URL
(connection.authenticatedUrl(origin)), and starts the desktop app with that link:
electron <app dir> --dsh-link=<authenticated url> --launcher-pid=<host pid>
The companion connects with that link on launch, so nothing has to be pasted.
The initial link travels in the process arguments. After a connection drop,
the companion requests a fresh link from its plugin parent over the inherited
IPC channel. Links are never logged or sent to the renderer.
The app rejects non-loopback links, credentials, hashes and sub-paths before it
touches the network. --launcher-pid makes the companion exit when the DSH
process it belongs to disappears; disposing the plugin kills the spawned tree.
If the companion is already running, the second launch hits its single-instance lock: the existing window is focused and re-connected with the new link.
Reopening a hidden or closed companion
Hiding the window keeps the process alive; Ctrl+Shift+G toggles it back. After
the user quits the companion, the plugin registers the DSH slash command
/status-bar. Invoking it in any session asks DSH for a fresh authenticated link
and either shows the existing instance through the single-instance hand-off or
starts a new one. The command is registered even when autoLaunch: false, so a
manually disabled companion can still be opened without restarting DSH. It never
stores or replays an old token.
Install
From npm, from the plugin market (once listed), or straight from the release tarball:
# npm entry package, downloads the runtime as needed
dsh plugin --profile web add dsh-status-bar-plugin
# release tarball: 155 MB, self-contained, nothing downloaded later
dsh plugin --profile web add https://github.com/wfz2006/dsh-status-bar/releases/latest/download/dsh-status-bar.tgz
Both end up as the same companion: the built desktop app plus an Electron
runtime. The tarball carries them; the npm package reads the download URL from its
own manifest (dsh.statusBar.runtime), fetches that tarball the first time DSH
starts it, and unpacks it into a per-version cache:
%LOCALAPPDATA%\dsh-status-bar\runtime-<version> on
Windows, ~/.cache/dsh-status-bar/runtime-<version> elsewhere. Later launches
reuse that cache.
Release builds also produce dsh-status-bar-lite.tgz and
dsh-status-bar-app.tgz. The light plugin reuses Electron from a previous
runtime cache when the bundled engine files match for the target platform and
architecture. It checks the SHA-256 of the application archive, then hard-links
the matching engine files into the new cache on the same volume. On a first
install, an engine upgrade, or a failed app-only update, it downloads the full
runtime. The self-contained archive is available for offline installation.
To enable the same behavior on npm, pass
--split-manifest dist/split-runtime.json to pack-npm-release.mjs.
On Windows, a small native preparation window shows download progress before Electron is available. A failed download shows Retry and Try later; retry continues without restarting DSH. Cancel stops the preparation and keeps the verifiable partial for the next launch. A valid cache opens the companion directly, without flashing the preparation window.
The downloader prefers system curl (and falls back to Node if unavailable),
checks stalled connections, and makes up to three attempts. Partial files live
beside the cache as runtime-<version>.tgz.part; Range resume requires an ETag or
Last-Modified validator. If the server ignores Range or no validator exists,
the file is downloaded afresh rather than concatenated incorrectly. Corrupt
archives are discarded; extracted content must match the plugin version before
it replaces a cache. A per-version lock prevents concurrent hosts from writing
the same partial/cache. Plugin disposal aborts preparation and prevents late launch.
The default GitHub URL is pinned to releases/download/v<plugin-version>/...,
even for older manifests advertising latest. An explicit download URL override
is respected; its archive must still match the installed plugin version. No
authenticated DSH link is requested until the runtime is ready, and progress
files contain no Host token or Cookie. Non-Windows environments retain log output;
the native progress UI is Windows-only.
Renamed in 0.2.3. The old package id was
dsh-glass-plugin; it still resolves to the same app, but new installs should usedsh-status-bar-plugin.
From a checkout (development)
The desktop profile can link the package instead of installing it:
// <profile>/package.json
"dependencies": { "dsh-status-bar-plugin": "link:D:/codexwork/dsh/dsh-glass-spec/packages/dsh-status-bar" },
"dsh": { "profile": { "bundles": [/* ... */ "dsh-status-bar-plugin"] } }
In a checkout the plugin uses apps/desktop/out as the app directory and the
workspace electron package, so run pnpm build first. Point a junction or
symlink at node_modules/dsh-status-bar-plugin if pnpm did not run, then restart DSH.
Configuration
The bundle patch sets autoLaunch: true. To keep the plugin installed but stop it
from launching the companion at boot, override the row config in the profile
patch; /status-bar remains available for manual launches:
- id: dsh-status-bar-plugin
config:
autoLaunch: false
Other overrides, all optional:
| key | meaning |
|---|---|
appDir |
directory holding out/main/index.js |
electronBinary |
path to an Electron executable |
runtimeDir |
where the downloaded runtime is cached |
downloadUrl |
override the runtime tarball URL |
autoReload |
relaunch the companion when the desktop bundle changes (default true) |
showStartupUI |
show native Windows preparation/error feedback (default true); disable only for intentionally headless use |
The same settings are available through the environment:
DSH_STATUS_BAR_APP, DSH_STATUS_BAR_ELECTRON, DSH_STATUS_BAR_RUNTIME,
DSH_STATUS_BAR_RUNTIME_URL. The pre-0.2.3 names (DSH_GLASS_*) still work as
fallbacks.
Requirements
- Windows 11 x64 (the glass refraction reads the screen behind the window).
- The desktop app is a separate Electron process; it needs a GPU-backed Electron runtime, which the release tarball provides.
License
MIT. The bundled Electron runtime keeps its own license files
(electron/dist/LICENSE, LICENSES.chromium.html).
Development verification
From the repository root, run pnpm test and pnpm test:plugin-startup after
pnpm build. The latter uses a temporary thin-plugin install, local HTTP/Host,
native WPF feedback and the actual workspace Electron through the documented
electronBinary override. It does not reinstall or enable the production plugin.
See first-run recovery for evidence and limits.
链接
同类插件
zhu1090093659/dsh-web#packages/dsh-task-board★ 10735
侧边栏多列任务看板:卡片交给真实 DSH 智能体会话执行,支持 cron 定时(Host 侧到点执行,关浏览器也生效)。
zhu1090093659/dsh-web#packages/dsh-web-all★ 10735
DSH Web UI 插件与皮肤合集:任务看板、git 图、右侧面板、远程移动端 UI、桌宠、实时 token 统计与皮肤中心。
ccch1mneyyy/dsh-TUI★ 8661
Claude Code 风格全屏终端 UI:像素鲸鱼顶栏、实时工作状态行、思考流式展开。
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 7538
右下角常驻的小鲸鱼挂件:余额、今日已用与每轮对话消耗(含峰谷价),余额预警与今日预算的泡泡内容都可编辑;泡泡点击序列模块化自定义,支持并列加权 A/B、随机台词与随机图片;内置 30+ 厂商模板(OpenAI / OpenRouter / Kimi / 硅基流动 / 方舟 / 智谱 / MiniMax 等),按模型查余额与订阅额度;另有任务结束音效、导入音频、自定义角色与资源管理。数据全在本机,无遥测。
omdsh-dev/DSH-better-sidebar★ 5419
侧边栏完整工作台:内置文件渲染编辑、终端、Git 与子代理,支持三方插件注册新 Tab。
omdsh-dev/dsh-genui★ 1103
助手回复内渲染交互式 UI 组件:布局、图表、表单、测验、mermaid、3D 场景与回传事件循环。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。