Preface¶
When running agents in the DSH Web GUI, once ask_user_question, approvals, or plan confirmations are triggered, the interface enters a waiting state for “your response.” The built-in question card takes over the input area—meaning it is only easy to spot that the agent has stopped if you are actively looking at that specific tab. If you switch to another tab, window, or program, the session might remain stuck in a waiting state for a long time without a sufficiently prominent signal on the page to draw you back.
Here, we introduce the community plugin dsh-ask-notify (maintained by liujianqiao701). It monitors the same runtime state as the “amber dot” in the session list on the DSH client side, actively pushing “requires your answer” reminders to a card in the bottom right corner. If the page is hidden or unfocused, it supplements this with system notifications and flashing tab titles. The current plugin version is 1.0.4 (MIT), categorized as a client-side plugin. It can be found in the SkillHub Plugin Directory, and the source code is on GitHub.
What Is This¶
dsh-ask-notify is a client-side plugin for the DSH Web GUI. It does not scrape the DOM; instead, it reads the waiting state (question, approval, plan-review, etc. kinds) from the host’s existing uiSession / session list snapshots. When a wait exists, it pops up a reminder in the bottom right; if you are not on the current page, it triggers Windows desktop notifications and changes the tab title to a flashing style with a ❓.
This plugin does not initiate any network requests; preferences are written to browser localStorage, and system notifications use the Notification API. It is recommended to review the source code and license before installation—the plugin runs in the browser environment alongside the current dsh web process.
Three Reminder Channels¶
| Channel | Condition | Purpose |
|---|---|---|
| Bottom-right reminder card | Any wait exists (shows whether on page or not) | See remaining issues at a glance upon returning to the page |
| System notification | Page hidden/unfocused and notifications authorized | Get called back even while in other tabs or programs |
| Title flashing | Page hidden | Distinguish “a tab is waiting for me” in the tab bar |
The card provides Go Answer (switch to the corresponding session and scroll to the input area), Remind Later (stops this specific one from popping up, but the next wait will still trigger), and Desktop Notification / Sound toggles.
Installation and Activation¶
Preferred: Plugin Market¶
In the DSH interface, go to Settings → Plugin Market → Search dsh-ask-notify → Install. After installation, check the status on the market card:
| Card Status | What to do next |
|---|---|
| Active | Refresh the page: F5, or Ctrl+F5 if that doesn’t work |
| Installed, active after restart | Restart dsh web, then Ctrl+F5 |
| Installed, inactive / Disabled | Click “Why inactive?”—a common cause is “agent is running,” stop it and then install |
The plugin entry is delivered with the page startup manifest (window.__DSH_BOOT__); the browser will not load new plugins without refreshing the page. If the market shows “Active” but there is “no effect,” it usually just needs this refresh step.
Alternative: Command Line¶
dsh plugin --profile web add github:liujianqiao701/dsh-ask-notify
The command line or this package’s install.ps1 is registered at the bundle layer. Since the bundle is read only once when dsh web starts, you must restart dsh web after installation, followed by Ctrl+F5 to refresh the page.
Environment Requirements¶
- Windows +
dsh web. - Available for Harness versions 1.0.4 and above: The plugin reads
uiSession.sessionStatus(0.1.7+),uiSession.pendingInteractions(0.1.2~0.1.6), orpendingInteractionon session list rows (≤0.1.1-rc.x) based on priority. If none of these three sources are readable, it scans map-type members, and you can viewdiscoveredsources in the console via__dshAskNotify.sources(). - From version 1.0.4, there are no mandatory cordis injection dependencies; the plugin will still mount if services are temporarily missing. If it cannot read data for about 15 seconds, it will warn in the console and display a tip card in the bottom right.
Typical Usage and Self-Check¶
No configuration is needed normally: after an agent enters a waiting state, the plugin updates reminders via subscriptions and approximately 2-second polling. You don’t need to actually wait for an issue to perform a self-check in the page console:
__dshAskNotify.version // Currently installed version (example in docs: 1.0.4)
__dshAskNotify.selftest() // Bottom-right card stays for about 12 seconds
__dshAskNotify.sources() // used / carries / discovered
__dshAskNotify.state() // Waiting, preferences, notification permissions, page visibility
__dshAskNotify.collect() // Current wait list; empty array means no one is waiting for you
__dshAskNotify.show('approval', 'Try approval style')
__dshAskNotify.hide()
sources().used indicates the source actually providing data; if used: "none" and a warning about unreadable data sources appears in the console, you can feedback the sources() output to the maintainer.
Preference keys (localStorage):
| key | Meaning |
|---|---|
dsh-ask-notify:prefs |
Boolean switches for various waits, system notifications, and sound |
dsh-ask-notify:autoasked |
Flag for requesting notification permission on first user gesture |
dsh-ask-notify:lastshot |
Deduplication for system notifications across tabs within ~20 seconds |
Notification permission is automatically requested once on the first click or key press; if it was previously denied, you can enable desktop reminders on the card or allow it in the site settings for http://127.0.0.1.
Scenarios and Notes¶
Who it is for: Developers who run agents in DSH Web for long periods, often using multiple tabs or windows in parallel, and want to ensure “approvals / follow-up questions / plan confirmations” don’t silently sit in a waiting state.
Troubleshooting essentials:
- First
Ctrl+F5, then run__dshAskNotify.selftest(); if it returnsundefined, the client script is not loaded (command line installation did not restart, or page was not refreshed). - Do not manually type
/plugins/.../client.jsURLs without?rev=to check liveness; new generation harness routes include a rev, manual typing might result in 404. UseCtrl+Uto search the boot payload, or look at__dshAskNotify.sources(). - If an agent is running during a market update, the market will block the update; wait for the session to end or cancel it before clicking update.
- If system notifications don’t pop up, check
__dshAskNotify.state().permission; browsers may disable notifications when opened via LAN IP. - If the page already has
dsh-whale-mascot, the reminder card overlays it; multiple tabs for the same wait each have a card, but system notifications only pop up once across tabs.
The plugin runs with your current DSH process and browser permissions; please read the repo README and source code before installation. SkillHub is a community plugin directory and has no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-ask-notify transforms “agent blocked waiting for your answer” from “must stare at the input area to notice” into a three-channel reminder system that is visible in the bottom right, notifies when away from the page, and flashes the tab. The data comes from runtime state consistent with the session UI, without relying on DOM structure.