dsh-session-actively
rabbitwakuwaku/dsh-session-actively
在左侧栏新增页面:先列正在运行的会话,再按最近活跃时间排列其他会话,逐行显示最近活跃时间,点击即可切换。
安装
dsh plugin --profile web add github:rabbitwakuwaku/dsh-session-activelyREADME
Session activity · 会话活跃度
A left-sidebar page for DeepSeek Harness (DSH): running sessions on top, every other session ordered by its last activity below — each with its last-active time. Click a row to switch to that session.
一个给 DeepSeek Harness (DSH) 用的左侧栏页面:上方列出正在运行的会话,下方按最近活跃时间排列其他会话,并显示最近活跃时间;点击任意一行即可切换。
Features · 功能
- Running first. Sessions with an active turn appear in the top section, newest activity first, with a live status pill and their last-active time.
- Recently active below. Every other session follows, sorted by
updatedAt(newest first), with its last-active time. The first 20 show by default; Show all N expands the rest and Show less collapses it again. - One click to switch. Clicking a row opens that session through the app's own navigation (
ctx.uiWorkspace.openSession). - Live, no polling loop. Both lists follow the existing Client session snapshot; the only timer is a 30-second tick that keeps relative times ("3 min ago") truthful.
- Clean lists. Draft sessions (never sent a message) and archived sessions stay out, matching the sidebar's own session navigation.
- Bilingual UI. English and Simplified Chinese dictionaries; follows the app locale.
Install · 安装
From the app (recommended): open Plugins → Add plugin and install this repository, then enable Active sessions in the plugin list.
From dsh-market: once listed, open Plugins → Discover, search for Active sessions, and click Install.
CLI: with the profile that serves your DSH GUI (web for a plain web profile, desktop for the Desktop app):
dsh plugin --profile <profile> add github:RabbitWaKuWaKu/dsh-session-actively
Then enable the bundle in Plugins if it is not enabled automatically. The package ships prebuilt client code, so no build step runs on install.
Usage · 使用
After enabling, the left sidebar gets an entry 最近活跃的会话 / Recently active (a list glyph with a green live dot).
- Top section 运行中 / Running: sessions currently running a turn.
- Bottom section 最近活跃 / Recently active: everything else, newest activity first.
- Click any row to switch to that session; the app navigates to it as if you picked it in the sidebar.
- When more than 20 sessions are in the recent list, use 显示全部 N 个 / Show all N below it.
Data and privacy · 数据与隐私
| What is shown | Where it comes from |
|---|---|
| Session list, title, running state, last activity | ctx.sessions.list — the Host-pushed Client snapshot |
| Workspace name | ctx.workspaces.list (sessionIds membership), falling back to the cwd folder name |
| Switching sessions | ctx.uiWorkspace.openSession(sessionId) — DSH's own navigation |
The plugin adds no Host service, projection, RPC, tool, network request, or storage. It never sends session data anywhere. Turning the bundle off removes both the sidebar entry and the page; the layout falls back to the Conversation view.
Compatibility · 兼容性
- Built and tested against DSH 0.2.2-rc.5 (Web/Desktop client). Targets DSH 0.2.x.
- Node.js >= 22.
- Client-only bundle: no host dependencies, no peer
@deepseek-ai/*packages.
Limitations · 限制
- "Running" means the session has an active agent turn, as DSH reports it — not merely that a chat window is open.
- The recent list is capped at 20 rows until you press Show all; the list itself still holds every non-archived session.
- Draft sessions and archived sessions are intentionally hidden.
- The page reads the live Client snapshot only; nothing is persisted, so a fresh install starts from the current session list.
Development · 开发
npm run check # validates locale key parity, manifest files and client registration
The client half is plain browser code loaded through DSH's window.__ModuleLoader__; it requires no bundler. A local directory can be linked into a profile for development, and the Client module system reloads an edited client.js through DSH's HMR transport.
License · 许可证
MIT © 2026 RabbitWaKuWaKu