Introduction¶
DeepSeek Harness (DSH) has a “Sort By → Recently Updated” option in its sidebar, but this feature is currently incomplete: it only reorders sessions within workspaces. The order of workspace groups themselves remains unchanged, so even when you switch to this mode, groups stay perfectly still.
This issue is clearly visible in the DSH Web client (@deepseek-ai/dsh-client-ui-workspace) implementation—the sorting logic merely applies a .map() to the workspaces array, preserving the input order. The orderBy parameter never participates in reordering workspace groups.
What This Is¶
dsh-workspace-sort-fix is a DSH client plugin maintained by justjump. It fills in the missing half of the sidebar’s “Sort By → Recently Updated” feature: in addition to reordering sessions within workspaces, it actually reorders the workspace groups themselves based on “the update time of the most recent session in each group.”
The plugin runs client-side, polls the view state, and invokes the official workspaces.insertBefore API to persist the order. It does not modify DSH’s own source code.
Core Features¶
Under the “Recently Updated” sort mode (and when the grouping mode is not “Single List”), the plugin performs the following:
- Reads the current view state every 1.2 seconds;
- Iterates over all workspaces, scoring each by the
updatedAtof the most recent session in the group; empty groups fall back tocreatedAt; - When a mismatch between the current order and the target order is detected, it calls the official
workspaces.insertBefore(item, anchor)to actually write the new order into the workspace registry; - The order is persisted by DSH itself and survives refreshes or restarts;
- When you switch back to “Manual Sort,” the plugin immediately stops intervening and no longer interferes with your drag-and-drop arrangement.
The plugin does not touch any DSH-internal files and relies solely on the existing sessions / workspaces services and view storage.
Installation & Activation¶
Method 1: Plugin Manager (Recommended)¶
In the DSH UI, select “Plugins → Install” and enter:
github:justjump/dsh-workspace-sort-fix
Method 2: Command Line¶
# Replace the profile name (desktop / web) as needed
dsh plugin --profile desktop add github:justjump/dsh-workspace-sort-fix
After installation, you need to restart the DSH client (plugins are loaded at startup).
Typical Usage¶
No configuration is needed after installation. Simply select “Sort By → Recently Updated” in the sidebar, and workspace groups will automatically float to the top based on their most recent activity. If you want to keep a manual drag-and-drop order, switch to “Manual Sort” and the plugin will stop intervening.
Use Cases & Caveats¶
- Ideal for developers who need to quickly locate recently active workspaces via “Recently Updated”;
- The plugin runs with the permissions of the current dsh process; it is recommended to read the source code and license (MIT) before installing;
- When there are many workspaces, the initial mount may require a dozen or so consecutive moves (bounded by
moveBudget, spread across multiple rounds); - The plugin rewrites the persisted workspace order, so manually dragged positions will be overwritten by timestamp under the “Recently Updated” mode.
Closing¶
This plugin fills in the missing piece of DSH’s sidebar “Recently Updated” sorting with a minimally invasive approach, making time-based workspace organization intuitive and practical.
- Directory page: https://www.skillhub.cn/plugins/justjump/dsh-workspace-sort-fix
- GitHub: https://github.com/justjump/dsh-workspace-sort-fix