Introduction¶
The DSH Web sidebar lists sessions, but offers no visibility into their status — making it impossible to quickly identify which are still running, which have completed or failed, and which need attention. Session Radar adds an entry to the sidebar that, when expanded, reveals a main panel: three status cards at the top serve as quick filters, and below them, sessions are displayed grouped by workspace. Unread markers are persisted on the Host, so the state remains consistent across browsers.
What It Is¶
Session Radar (dsh-session-radar) is a client-side plugin for DSH Web, maintained by r56661828-cloud. It organizes sessions by status and owning workspace, provides filtering and read-status management, and persists unread state on the Host to avoid inconsistency across multiple browsers.
Core Features¶
- Three statuses:
in progress(including sub-agents currently running),unread(completed or failed but not yet viewed), andpending confirmation(three types of sessions requiring interaction:approval,plan-review, andquestion). - Status cards as filters: Clicking any status card filters the list to show only sessions of that status. Click again or click “Clear” to restore the full list.
- Grouped by workspace: Each group displays the total session count and the number currently in progress. Sessions without an assigned workspace fall under “Ungrouped.”
- Host-persisted unread state: The state file lives at
<dshHome>/dsh-session-radar/state.json. It no longer relies on localStorage, ensuring cross-browser consistency. - Accurate failure/interruption tracking: The Host listens to the turn-end reason in
session/event(completed,aborted,blocked,error,max-tokens,interrupted,forked) rather than relying on front-end heuristics. - Startup backfill: On first launch, the tail of the logs for the most recent 7 days (up to 80 sessions) is read so the panel has content immediately. Concurrency is capped at 3; if no session service is found, it silently skips.
- Read-only view: The browser side does not write to localStorage. All state writes go through Host routes.
Installation and Activation¶
Install from Gitee (requires DSH ≥ 0.2.2-rc.1):
dsh plugin --profile web add git+https://gitee.com/you-renjun/dsh-session-radar.git
After installation, restart dsh web, and a “Session Radar” entry will appear in the sidebar.
Data and Routing¶
| Item | Description |
|---|---|
| State file | <dshHome>/dsh-session-radar/state.json (atomic write: temp file + rename, 250 ms debounce, one retry on failure without throwing into the plugin apply) |
GET /api/dsh-session-radar/state |
Read the full ledger |
POST /api/dsh-session-radar/read |
Mark as read |
POST /api/dsh-session-radar/order |
Save group ordering |
| Refresh cadence | Re-read every 15 s while the page is visible; write-read requests are batched in a 120 ms window |
The request body is capped at 64 KiB; anything exceeding the limit is rejected outright. A write failure only loses the read-mark for that batch and will not crash the Host.
Compatibility¶
engines.dsh >= 0.2.2-rc.1.- Only effective under DSH Web; the headless profile has no
dsh.cliententry point. dsh.client.injectdepends on 7 official client packages (dsh-client-ui-sidebar,dsh-api-session-controller, etc.). Their versions follow the host and are not installed separately.
Use Cases¶
Ideal for DSH users who manage multiple sessions concurrently and need to keep track of running status and completion. Before use, review the source code and license to ensure compliance with your project requirements.
Conclusion¶
Session Radar, through status-based grouping and Host-side persistence, makes session status clear at a glance and reduces the time spent checking sessions one by one in DSH Web. Plugin directory: https://www.skillhub.cn/plugins/r56661828-cloud/dsh-session-radar; GitHub: https://github.com/r56661828-cloud/dsh-session-radar