dsh-task-center: Unified Agent Status Viewing and macOS Notifications in the Sidebar

Preface

DeepSeek Harness (DSH) groups sessions by WorkSpace (project directory). When multiple projects are open simultaneously, three things tend to happen: you lose track of which project you were just working in; the Agent pauses and waits for you to act, but the sidebar only shows a tiny dot, and once you leave the app the task silently stalls; a task finishes with no notification, and you only discover it’s done when you switch back.

This plugin extracts the three states — running, waiting for you, and just finished — into a single cross-project entry point, and when needed, uses macOS system notifications to bring the app to the foreground and open the relevant session.

Plugin Overview

  • Name: dsh-task-center
  • Maintainer: daishaodong
  • Category: Client
  • License: MIT
  • Current version: 1.7.0

The plugin is a DSH bundle containing package.json, cordis.patch.yml, index.js (host-side), client.js (browser-side), and other files. It can be loaded directly through DSH’s plugin system.

Core Features

1. Sidebar “Task Center” Entry

The entry sits at the bottom of the sidebar, just above the Settings button.

  • The number on the right indicates how many sessions are waiting for you; when nothing is pending, no number is shown.
  • When the sidebar collapses into a 56px icon strip, it becomes an icon with a small dot.
  • The panel lists sessions across all projects in three groups:
Group Meaning
Waiting for you The Agent is waiting for your answer, approval, or plan confirmation
Running The Agent is actively working
Finished within 30 min Completed, unread, and finished within the last 30 minutes

Each row displays: session title · project name · last activity time · status. Clicking any row navigates to that session using the exact same navigation action as the sidebar, and the panel closes.

Entries in the “Finished within 30 min” group are marked as read the moment you open them and disappear from the list, preventing completed tasks from piling up indefinitely.

2. macOS System Notifications

Whenever a session transitions to waiting for you (a question / approval / plan confirmation) or a run cycle finishes, a system notification is sent:

  • The title states the reason (e.g., “Agent is waiting for your reply” or “Task completed”).
  • The body shows “Session title · Project name”.
  • Clicking the notification brings the app to the foreground and opens that session directly.
  • A new notification for the same session replaces the old banner rather than stacking.
  • The currently active session also triggers notifications (this is a deliberate default; the sidebar and panel remain available as a non-intrusive view).

Only when the page has no notification permission at all does it fall back to an in-page card in the bottom-right corner (auto-dismisses after 15 seconds, max 3 cards, clicking also navigates).

3. Project Ordering by Recent Activity

When the toggle is enabled, the sidebar’s project order follows “most recently active session”: projects you’ve been working on float to the top, while inactive ones sink. The toggle is at the bottom of the panel, and the preference is stored locally.

  • Only genuinely out-of-order workspaces are moved; if the order is already correct, zero writes occur.
  • If the host insists on a different order, the plugin tries twice, then pauses for one minute instead of repeatedly fighting.
  • Turning the toggle off stops reordering (current order is preserved); when on, manual drag-to-reorder will be overridden by the next activity event.

4. UI & Interaction

The panel is designed with a macOS aesthetic: SF system font stack, translucent material (backdrop-filter), embedded group cards with 0.5px hairline separators, iOS-style toggles, 160ms ease-in animations, and respects the “Reduce Motion” preference. All colors use DSH theme tokens, following the host in both light and dark modes.

Installation & Activation

Requirement: DSH Desktop (verified on 0.2.2-rc.3 + macOS for this article).

  1. Download or clone this repository to any directory.
  2. Open DSH Settings → Plugins → Add plugin, and select the directory (the level containing package.json).
  3. After installation, restart DSH (or refresh the page) to load the plugin.
  4. A “Task Center” entry appears at the bottom of the sidebar.

Uninstall: Disable or remove dsh-task-center in Settings → Plugins. The entry and notifications disappear; DSH itself is unaffected.

macOS Notification Setup

macOS has a common gotcha: an app only appears in “System Settings → Notifications” after it has requested notification permission. Apps that have never requested it simply won’t show up there.

  1. After installing the plugin, let any task finish (triggering the first notification prompt). The system will ask for permission or deliver it directly.
  2. Open System Settings → Notifications → DeepSeek Harness and confirm “Allow Notifications” is enabled.
  3. The panel bottom displays the current status: Allowed / Pending / Denied (falls back to in-page toasts) / Not supported in current environment.

Notes:

  • When the app is in the foreground, macOS may suppress the banner (the system assumes you’re already looking). The notification still lands in the Notification Center where you can review it later.
  • With the alert style set to “Temporary”, the banner appears only briefly. To keep it longer, change it to “Persistent” in System Settings.

How It Works

The plugin detects changes by comparing the previous local snapshot with the current one:

  • A new question / approval appears → the session moves to the “Waiting for you” group and triggers a notification.
  • Running → Stopped → the session moves to the “Finished” group and stays in the list for 30 minutes.

The flow can be summarized as:

Session state → Compare with previous snapshot → New question/approval → Waiting for you (notification + panel)
       → Running → Stopped → Finished (notification + panel)

The plugin reads from three existing client data sources: the session list, session status, and workspace snapshots. It does not write session logs, does not modify tools, and does not alter system prompts. Completion detection does not rely on DSH’s unread flag; instead, it compares “was running in the previous snapshot → is no longer running now.” On first load, it only establishes a baseline and does not batch-fire notifications. There is no polling; everything is driven by client snapshot changes.

Support & Compatibility

Environment Status
DSH 0.2.2-rc.3 Desktop (Electron) + macOS 26 ✅ Verified
DSH Web (opening the 127.0.0.1 port directly in a browser) ⚠️ Works; notifications depend on browser authorization; falls back to in-page cards if denied
Windows / Linux ❓ Unverified (feasible in principle; notification implementation is platform-dependent)

DSH client contracts relied upon: two slots (sidebar.footer.action, shell.overlay), three standard hooks (useSessions, useSessionStatus, useWorkspaces), navigation via uiWorkspace.openSession(sessionId), project reordering via workspaces.insertBefore(id, beforeId), and the browser Notification API (the Desktop shell grants non-media permissions).

Limitations

  • Only active while this page is open; events that occur while the page is closed or the app is quit will not trigger retroactive notifications (current state is still visible once you return).
  • Blank new sessions, archived sessions, and sub-agent child sessions are not listed and do not trigger notifications; sub-agent activity is reflected in the parent session.
  • The “Finished” timestamp approximates the session’s last activity time.
  • The currently active session also receives notifications (a deliberate choice).
  • In the collapsed sidebar state, only a dot is shown, not a number.

Privacy

  • No network requests are made; no data is uploaded.
  • Only reads in-memory snapshots already present in the local DSH client.
  • The sole local persistence is the “project sort” toggle preference (localStorage, key: dsh.task-center.workspace-sort).
  • Notification content is generated locally.

Configuration

These values are defined at the top of client.js. Modify them as needed (a dedicated plugin Config UI is planned for the future):

Constant Default Meaning
COMPLETED_WINDOW_MS 30 minutes Retention window for the “Finished” group
TOAST_MS 15 seconds Lifetime of in-page fallback cards
MAX_TOASTS 3 Maximum in-page fallback cards
Sort default On Toggleable via the panel-bottom switch

Use Cases

Ideal for DSH users managing multiple projects simultaneously, frequently switching between sessions, and who want to never miss an Agent’s request for input or completion signal. The plugin runs with the current DSH process permissions; review the source code and license before installing.

Summary

dsh-task-center consolidates “which project is running what” and “which Agent is waiting for you” into a single sidebar entry, and proactively pings you via macOS notifications when needed. If you juggle multiple projects, this plugin helps reduce oversights and keep your collaboration rhythm tight.

  • Plugin directory: https://www.skillhub.cn/plugins/daishaodong/dsh-task-center
  • GitHub: https://github.com/daishaodong/dsh-task-center
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye