DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

Snownee /

Snownee/dsh-last-updated-workspaces

Verified

DeepSeek Harness sidebar plugin: orders workspace groups by their most recently updated session.

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@8f1f06e9

Recently updated workspace order

A DeepSeek Harness (DSH) sidebar enhancement: when the sidebar groups by workspace ("WorkSpace" or "Workspace Tree") and orders by "Last updated", the workspace sections themselves are also ordered from newest to oldest activity.

DSH only sorts Sessions inside a workspace by recency; the sections stay in Workspace registry order. This plugin adds that missing layer between workspaces.

工作区按最近更新排序

一个 DeepSeek Harness(DSH)侧边栏增强插件:当侧边栏按工作区分组(「按工作区」或「按工作区树」)且**排序方式为「最近更新」**时,让各个工作区块之间也按最近更新时间从新到旧排列。

DSH 原本只对工作区内部的会话按最近更新排序,工作区块本身固定为工作区注册表的顺序;这个插件补上工作区之间的那一层排序。

中文说明:README.zh.md

Behavior

  • Each workspace's sort key is the newest updatedAt among its Sessions. Subagent sessions are excluded because they never appear in the sidebar.
  • Workspaces without any Session rank after active ones, keeping registry order among themselves; exact time ties also keep registry order.
  • Applies to both "WorkSpace" and "Workspace Tree": in tree mode, sibling workspaces at the same level are ordered by recency.
  • "In one list" and "Manual" ordering are untouched: the flat list has no workspace sections, and Manual keeps the order the user dragged.
  • The durable registry order is never rewritten. Dragging a workspace while sorted produces no write (the drag has no visible effect), so switching back to "Manual" still shows the previous arrangement.

The current mode is read from the sidebar's persisted view state: the highest-version key among dsh.workspace.view.vN. When the view has never been changed, the default ("WorkSpace" + "Last updated") applies and the plugin is active immediately.

Install

This is a DSH bundle published at Snownee/dsh-last-updated-workspaces. It installs from that repository; there is no npm release.

  • Plugins page: click Add plugin and enter github:Snownee/dsh-last-updated-workspaces in the package field.
  • Agent: call plugin_manager with action: install_bundle and the same spec as target.

Both install the default branch. Append a full commit to pin one, github:Snownee/dsh-last-updated-workspaces#<sha>; only a commit pin gets an Update action in Plugins, while a branch installation is upgraded by removing and reinstalling it.

After installation it appears in Settings → Plugins as "Recently updated workspace order". It has no options.

Use and verify

  1. In the sidebar view options, set Group by to "WorkSpace" and Order by to "Last updated".
  2. Watch the section order: the workspace with the newest Session activity is first.
  3. Send a message in a lower workspace; it should jump to the top.

If nothing changes after installation, refresh the page: client modules are loaded through HMR, and a refresh guarantees the latest version.

Behavior tests run with npm test (Node only, no dependencies).

Implementation

The sidebar browser (@deepseek-ai/dsh-client-ui-workspace) derives sections from the client Workspace snapshot (IWorkspaces.list) and renders them in items order; it exposes no extension point for reordering sections. The plugin therefore wraps that snapshot source on the client:

  • getSnapshot: returns a snapshot whose items are ordered by recency while the conditions hold; when the order is unchanged it returns the original snapshot to avoid needless re-renders.
  • subscribe: also follows the session list, because the derived order changes with Session summaries; it forwards those changes only while sorting is active.
  • insertBefore: blocks Workspace order writes while sorting is active and resolves; dragging no longer rewrites the durable registry order.
  • The two ctx.effects restore the wrapped methods when the plugin is unloaded; neither the registry order nor the view state is affected.

All code lives inside the module factory: browser client bundles are concatenated into shared combo scripts, so top-level bindings would collide with other plugins.

Known limitations

  • Sorting applies to the client's global workspace snapshot, so the workspace picker on the New Session page shows the same order.
  • Workspace rows remain draggable in the sorted view, but a drag changes neither the display nor the durable order (see above).
  • The view state is read from browser local storage, taking the highest dsh.workspace.view.vN key; if a future DSH changes that prefix or the state fields, the plugin must be updated.
  • Archived sessions still count: a workspace that just archived its newest Session can still rank first.
  • Non-current blank Sessions are invisible in the sidebar but still count: a workspace with only a freshly created Session (no messages yet) can rank first.

Files

Path Purpose
README.md English documentation (default)
README.zh.md Chinese documentation
package.json Package manifest: dsh.bundle.patch and dsh.client
cordis.patch.yml Inserts the Loader row dsh-last-updated-workspaces
index.js Host half: empty, only loads the client half with the row
client.js Client half: wraps the workspace snapshot and orders sections
locale/en.json, locale/zh.json Plugin title and description
test/client.test.js Client behavior tests (npm test)
icon.svg Plugin icon
—/ 5

No ratings yet

Verified DSH bundle

Commit 8f1f06e95b4c

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout