dsh-task-completion-beep: Play a Browser Notification Sound When a Task Ends

When developing or scheduling tasks using the DSH Web interface, users often need to wait for long-running task execution. Without obvious visual cues, it is difficult to immediately perceive that the task status has changed to “idle.” This plugin solves this problem via auditory feedback, providing a clear notification when a task concludes.

What is it

This is a DSH Web plugin maintained by flyhigao and licensed under the MIT License. It monitors the transition of task status from running to idle within the DSH interface and plays a sequence of five short beeps in the browser.

Core Features

  • Audio Generation: Uses the Web Audio API to generate five 880 Hz beeps without requiring any audio files or external runtime dependencies.
  • State Monitoring: Monitors the transition of task status from running to idle in the DSH interface.
  • Event Response: Simultaneously responds to the deepseek-harness:task-completed browser event (if sent by the host).
  • Lifecycle Management: Uses the Web Plugin Lifecycle to manage observers and event listeners, automatically cleaning up resources upon unloading.
  • Privacy & Security: Runs solely within the browser; does not access the network or read/write user data.

Installation & Activation

  1. Run the installation command:
    dsh plugin --profile web add github:flyhigao/dsh-task-completion-beep
  1. Restart the dsh web service and refresh the browser page.

Typical Usage

After installation and restart, start a new task. When the task execution finishes, five short beeps will play in the browser to notify you that the task is complete.

Use Cases & Notes

  • Browser Autoplay Policies: Modern browsers often restrict automatic audio playback on pages. If you do not hear the sound after installation, try interacting with the page first (e.g., clicking or scrolling) before starting the task test.
  • Development & Maintenance: The client-side code is manually maintained and requires no build steps.
  • Permission Scope: The plugin runs only in the browser and does not access the network or read/write user data.
羽毛球分组比赛记分
小程序二维码

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

Xiaoye