dsh-tab-status
中文 | English
Puts the DeepSeek Harness workspace's session progress on the browser tab: a state prefix on the page title, and a count badge on the tab icon for the two states that want your attention.
⚠ 2 待处理 · 浏览器标签同步对话进度 — DeepSeek Harness
● 进行中 · 浏览器标签同步对话进度 — DeepSeek Harness
✓ 2 已完成 · 浏览器标签同步对话进度 — DeepSeek Harness
浏览器标签同步对话进度 — DeepSeek Harness ← idle: byte-for-byte the factory behaviour
Why it exists
The sidebar already tells you which session is running and which one finished — but the sidebar is page content, and it only helps while you are looking at it.
The browser tab is the one strip that is always on screen, and the only thing still visible from a background tab. This plugin moves the three things worth knowing onto it: a session is waiting on you, a session is working, a session finished while you were looking elsewhere.
What it says
| State | When | Title prefix | Tab icon |
|---|---|---|---|
| ⚠ 待处理 (waiting) | a session is waiting on you (approval / question / plan review) | ⚠ 2 待处理 · |
full-bleed amber disc with a white count |
| ● 进行中 (running) | a session is working (its subagents included) | ● 进行中 · , or ● 3 进行中 · for several |
the original mark with an enlarged status dot |
| ✓ 已完成 (finished) | a session finished and you have not opened it | ✓ 2 已完成 · |
full-bleed green disc with a white count |
| idle | none of the above | none | the original icon, restored |
Priority matches the workspace sidebar: waiting > running > finished > idle.
Badge counts cap at 9+. A running state is deliberately not a whole-image badge: it is the high-frequency normal case, so replacing the brand mark with a disc would hide it almost permanently, while the two "come look at me" states are exactly the ones worth spending the whole icon position on.
Where the states come from
Everything arrives as standard slot props; the plugin fetches nothing, polls nothing, and makes no RPC calls:
useSessions— the session list snapshot, the very same one the sidebar reads (running,completed,title).useSessionPendingInteraction— each session's pending interaction.usePanelInfo— the active main panel; a session title is shown only while the conversation panel is in front, matching the built-in title rule.
The "finished" bit deserves a note of its own: the host sets it only for a session that is not the selected one, so it means exactly "it finished while you were elsewhere" — which is precisely what a tab should tell you.
Install
dsh plugin --profile web add @climber47/dsh-tab-status
then restart dsh web.
How it works
This is a dsh bundle, mounted by a single insert row:
package.jsondeclaresdsh.bundle.patch(what makes it installable) anddsh.client(platform: web, what makes the browser half load).cordis.patch.ymlinserts thetab-statusrow.lib/index.jsis the (deliberately empty) host half: this plugin has no host behaviour, but the bundle's insert row resolves the package root, so the package has to be importable.lib/client.jsis the browser half, in thewindow.__ModuleLoader__.load({ id, factory })registration shape a client bundle must have. It is generated fromsrc/client/bynpm run build, so the readable source and the shipped artifact cannot drift.- It registers one purely additive entry in
shell.overlay(the frame-wide layer withreplaceRisk: none) and returnsnull: its only effects aredocument.titleand the favicon<link>. - The title is layered, not taken over. The built-in
DocumentTitlein@deepseek-ai/dsh-client-ui-layoutkeeps writing the title exactly as before, and we add a prefix on top. Two independent guarantees: effect order (shell.overlayis a later sibling in AppFrame, so within one commit our effect runs second), and aMutationObserveron<title>that re-layers the prefix after any write. Layering strips our own previous prefix first, so it never accumulates and we never need to know what the factory title is — if the product renames itself, we follow. - The favicon is composed on a canvas, coloured from theme tokens (
--dsw-alias-state-warn-primary/--dsw-alias-brand-primary/--dsw-alias-state-success-primary), and repainted when the theme changes. - It declares only real services (
slots). A client plugin has no styles service —stylesexists only inside the dynamic-plugin sandbox; declaring a service nobody provides makes Cordis wait forever, so the plugin reports itself loaded, logs no error, and never renders. The build script carries a service allowlist that exists specifically to catch that class of mistake.
Known limits
- This page only: several tabs are independent; this is not a cross-page dashboard.
- No polling: it writes once per snapshot change, so there is no per-second information such as "running for 3 minutes".
- Badge counts cap at
9+. - Do not run it alongside a dynamic Cordis plugin that does the same thing — the two would fight over the title. Stop the dynamic one before installing this.
- The plugin makes no network request and stores no data.
Requirements
- dsh
>=0.1.5-rc.1 - React 18 (a peer dependency, supplied by the harness shell)
License
MIT
No comments yet. Be the first to write one.