dsh-recent-tasks: Separate "No Workspace" conversations from "Ungrouped"

Introduction

DeepSeek Harness (DSH) resolves results based on the session’s cwd, categorizing each conversation under its corresponding workspace. If no workspace is selected when starting a conversation, that session does not belong to any group and is forced to pile up in the sidebar’s “Ungrouped” section along with archived directories and deleted projects. In daily development, quick Q&A and cross-project casual chats often end up here. Over time, “Ungrouped” becomes difficult to navigate and gets cluttered with actual miscellaneous items.

The community plugin dsh-recent-tasks (maintainer winditer) registers a real workspace record in the sidebar to specifically accommodate “workspace-less” sessions. It visually promotes this into a “Recent tasks” section that sits at the same level as “Workspaces” and can be collapsed independently. The following section covers its positioning, capabilities, and installation instructions.

What is this

dsh-recent-tasks is a DSH client class plugin: it adds a collapsible “Recent tasks” section to the sidebar hierarchy. Conversations without a workspace default to this section instead of continuing to pile up in “Ungrouped”.

The plugin is published on npm as dsh-recent-tasks (version 0.3.0 in current materials), licensed under MIT. Community directory page: skillhub.cn/plugins/winditer/dsh-recent-tasks; Source code and documentation: github.com/winditer/dsh-recent-tasks.

Core Features

A Real Workspace, Not a “Simulated Group”

The groups in the DSH sidebar are essentially the workspace storage domain; third-party plugins cannot bypass this to insert a parallel set of groups. This plugin registers one real workspace record for a dedicated directory via ctx.workspaceRegistry. It is created as the last group; unless you manually drag it, the plugin will not modify the persisted order.

Therefore:

  • Conversations started within this group have a cwd pointing to the recent tasks directory, and the session ID is written to that group’s sessionIds via the official path (matched by realpath(cwd), preventing conversations from being dragged into other groups to fake their attribution);
  • The sandbox root remains this folder, with permission boundaries consistent with standard workspace conversations;
  • It does not patch the official “Workspace” text, nor does it alter the “Ungrouped” logic; the group display name is modified by the plugin only for its own record and updates with the current UI language.

“Recent tasks” is visually at the same level as the official “Workspaces” header: collapsing the “Workspaces” arrow only hides other workspace groups, leaving “Recent tasks” visible; collapsing the “Recent tasks” arrow only collapses the list of conversations beneath it. Underlying this is still a single workspace record; the plugin does not write to other groups’ data or reorder lists.

The implementation relies on official stable attributes (such as data-row-key, role, inline --dsh-workspace-indent) rather than volatile class names. If DSH upgrades and these anchors change, the section-level display will self-disable, reverting the sidebar to default styles and leaving a console message to avoid residual DOM hacks.

The plugin temporarily skips this “promotion” in the following cases: flat lists, during search, sidebar width < 56px, or if the directory is nested under another workspace in tree mode (where it is not a peer). It will immediately reapply when switching back to the normal view. Collapse states are saved in the browser local key dsh.recent-tasks.workspaces-collapsed.v1 and are not reported.

Entry Points and Shortcuts

  • A ”+ Recent task conversation” button appears next to Settings at the bottom of the sidebar to start a new conversation under this workspace;
  • Shortcuts Mod+Alt+N / Mod+Shift+N (described alongside Settings in the materials) also launch a conversation in this workspace.

Settings and Host API

Rows related to “Recent tasks” appear in Settings → General: you can configure Folder path, Group name, Auto-repair, etc. These are persisted via the plugin’s official live config.

It provides read-only, idempotent HTTP interfaces: POST /dsh-recent-tasks/api/state and /ensure; write paths are restricted to the settings form mentioned above, rather than arbitrary API state changes.

Environment and Dependencies

  • DSH web or desktop profile, version 0.2.0-rc.1 or higher (README notes development verified on 0.2.0-rc.2, cordis ~4.0.4); engines.dsh in package.json is >=0.2.0-rc.1 <0.3.0-0.
  • Building from source requires Node.js >= 22.19.0; installing to the profile via pnpm is recommended.
  • No network access requirements, no native modules, no install scripts, no runtime npm dependencies.

Installation and Activation

The bundle entry (id: recent-tasks) is self-declared by the cordis.patch.yml inside the package, so manual patch writing is generally unnecessary.

Both the marketplace and pre-built packages follow this path, allowing you to skip build approval:

dsh plugin --profile desktop add dsh-recent-tasks

When using the web profile, replace desktop with web:

dsh plugin --profile web add dsh-recent-tasks

Install from GitHub

Installs the main tip by repository identity, suitable for trying unpublished changes; a pre-built dist/client.js is committed to the repository, so the consumer side will not execute a build for this package:

dsh plugin --profile desktop add github:winditer/dsh-recent-tasks

Install from Release Tarball

dsh plugin --profile desktop add https://github.com/winditer/dsh-recent-tasks/releases/download/v0.3.0/dsh-recent-tasks-0.3.0.tgz

In-App Installation

Settings → Plugins → install bundle, pointing to this plugin’s directory or file: spec. If modifying the profile manually, besides dsh.profile.bundles, you must also register the package in dependencies; otherwise, the desktop crash recovery path might clear items listed only in bundles.

After installation is complete, fully quit and restart DSH. The “Recent tasks” group will appear at the end of the sidebar.

Typical Usage

  1. Complete any of the installation methods above and restart DSH.
  2. In Settings → General, confirm the “Recent tasks” directory and group name; enable auto-repair if needed.
  3. Click ”+ Recent task conversation” or press Mod+Alt+N / Mod+Shift+N to start a new session—these sessions belong to the recent tasks workspace and will not enter “Ungrouped”.
  4. Treat it like a regular workspace: you can rename the group, drag to reorder, pin, archive, and search; the collapse arrow only affects the list under this block.
  5. If you prefer to chat without a workspace, historical conversations will be listed under this block instead of mixing with archives in “Ungrouped”.

Use Cases and Notes

Suitable for: Users who frequently conduct short, workspace-agnostic conversations in DSH, desire a clear sidebar structure, and require the same archive/search/permission behaviors as regular workspaces.

Known trade-offs (per README): The “Recent tasks” block scrolls with the workspace list; when the “Workspaces” block is collapsed, if the current session belongs to a different hidden group, the highlight might temporarily be invisible; during the very brief moment of official UI redraw, collapsed groups might flash briefly before being corrected by the plugin’s replay.

Security and Trust: The plugin runs with the current DSH process permissions, registering a workspace, injecting client scripts, and providing the APIs mentioned above. Please read the source code and LICENSE before installing to ensure it complies with your policies. Community directories like SkillHub are independent sites, have no official affiliation with DeepSeek / High-Flyer, and are not official app stores.

Conclusion

dsh-recent-tasks uses a real workspace record to separate “workspace-less” conversations from “Ungrouped” into a manageable “Recent tasks” section, preserving DSH’s native grouping behavior and sandbox boundaries. For details, screenshots, and development build instructions, please consult the GitHub repository and the SkillHub directory page.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye