dsh-run-monitor: Monitor DSH Session Tasks in the Sidebar

Introduction

When using DSH (DeepSeek Harness) for multi-session development, you often need to manage multiple running tasks simultaneously, distinguishing which ones are waiting for input, which have completed, and which are still executing. Previously, the only way to check this information was to browse the sidebar history, which made it easy to overlook or misjudge tasks. dsh-run-monitor groups the current session tasks by status and displays them at the bottom of the sidebar, with notification reminders, giving you a clear overview of task statuses at a glance.

What Is This

dsh-run-monitor is a DSH Web UI plugin maintained by Yven. It adds a “Run Monitor” entry at the bottom of the left sidebar. Clicking it opens a floating panel docked to the sidebar that lists the session tasks in the current workspace under three groups: Awaiting Reply / Completed / Running. Click any task to jump directly to the corresponding conversation. The plugin has no third-party dependencies and takes effect immediately after a page refresh following installation.

Core Features

Status Grouping

Tasks in the floating panel are grouped by status:

  • Awaiting Reply: The turn has not ended, and the last event is a question-type tool call (e.g., ask_user_question).
  • Running: The turn has started but has not yet ended.
  • Completed: The turn has ended and no sub-tasks are still running; only completed-but-unread tasks are listed (they disappear from the list once read).

Each task is displayed with a workspace badge + title. The badge shows the workspace the task belongs to (preferring the workspace title, falling back to the last path segment), and tasks are grouped by workspace. Subagent sessions are excluded from monitoring—they are internal steps of the main task, and including them would drown out real tasks. However, if the main turn has ended but subagents are still running, the task remains “Running” with a subtitle reading “Sub-task in progress,” preventing premature completion reporting. The “Completed” clear logic relies on the shell’s completionUnread state projection, so the result is consistent across tabs and page reloads.

To the right of the entry button, counts are displayed by status: Awaiting Reply (red), Running (yellow), Completed (blue). In narrow mode (56px icon bar), only the most urgent one is shown. The badge and the floating panel share the same criteria, so the numbers on both sides will never conflict.

Notifications

Notifications are only triggered when a status change occurs; the first time a task is seen, no alert fires.

  • When the page is in the foreground and active: an internal bubble appears above the entry button, auto-dismisses after 3 seconds, and a click navigates to the task.
  • When the window loses focus, is switched away, or has been idle for more than 30 seconds: a system notification is sent; clicking it focuses the window and navigates to the task.
  • System notification titles carry a status prefix, e.g., [Completed] <Task Name> / [Awaiting Reply] <Task Name>, with the directory and question summary in the body.
  • Two toggles at the top of the floating panel allow you to disable internal / external notifications independently; each toggle has a “Test” button next to it to verify that the channel is working.

Installation & Activation

Install directly from GitHub (source is the artifact—no build step, no third-party dependencies):

# Install default branch
dsh plugin --profile desktop add github:Yven/dsh-run-monitor

# Or explicitly pin a branch / tag / commit
dsh plugin --profile desktop add github:Yven/dsh-run-monitor#main

dsh plugin delegates installation to pnpm in the profile directory. On success, it registers dsh-run-monitor in the profile’s dsh.profile.bundles—this is the step that actually activates the plugin. Simply refresh the page after installation.

Upgrading: Replace the part after # with the new tag / commit and run the command again to replace the existing install; once a release tag is published in the repository, you can pin a version using notation like #v0.2.18. The client bundle is fetched by version number, so the browser will continue to use its cache if the version number hasn’t changed.

Typical Usage

After opening the DSH Web UI, a “Run Monitor” icon appears at the bottom of the left sidebar. Click the icon to open a floating panel docked to the sidebar, listing the session tasks in the current workspace. Tasks are grouped under “Awaiting Reply,” “Running,” and “Completed,” with each task showing its workspace badge and title above the entry. Click any task to jump directly to the corresponding conversation page.

If a task is waiting for your reply, the red badge above the entry button shows the count of pending items. When you switch to another window or have been idle for more than 30 seconds, a system notification pops up; clicking it automatically focuses the DSH window and navigates to the task. You can independently toggle off internal and system notifications at the top of the floating panel, and each toggle has a “Test” button to verify the channel is working.

Use Cases & Notes

Ideal for agent developers who need to manage multiple DSH sessions simultaneously and want real-time visibility into task statuses. The plugin runs with the permissions of the current dsh process—review the source code and license (MIT) before installing. The plugin only tracks live sessions (via the Host-side sessions.list()); archived sessions or those from before a process restart are not included. State is driven by event push; under normal conditions, changes are visible in about 0.3 seconds. When push is unavailable, it falls back to polling with a worst case of 15 seconds / 60 seconds.

Conclusion

dsh-run-monitor consolidates task statuses scattered across multiple sessions into a single sidebar floating panel. Through status grouping and a notification mechanism, it lets developers track task progress without constantly switching tabs. If you frequently need to manage multiple sessions in DSH development, this plugin can help you stay on top of your tasks.

  • Directory page: https://www.skillhub.cn/plugins/Yven/dsh-run-monitor
  • GitHub: https://github.com/Yven/dsh-run-monitor
羽毛球分组比赛记分
小程序二维码

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

Xiaoye