dsh-recent-sessions: Sidebar Entry for Quick Return to Recent Sessions

Preface

When working with multiple workspaces and sessions simultaneously in DeepSeek Harness (DSH), switching back to “that conversation from earlier” often relies on memory or clicking through the workspace list one by one. While the Harness itself records sessions, the sidebar displays the workspace structure by default and does not provide a specific shortcut ordered by “last activity time.” The dsh-recent-sessions (npm package name @yfwu2020/dsh-recent-sessions) introduced below is a client-side sidebar plugin published by maintainer yfwu2020: it adds a row titled “Recent Sessions” below the workspace list. Clicking it opens a card floating above the workspace list, displaying recent sessions sorted by last activity time. Clicking a single row allows you to switch via official navigation.

What is this

The plugin’s positioning comes from the repository description: a DSH sidebar plugin featuring a floating-layer style recent-sessions panel that visually blends into the sidebar rather than appearing as an independent window. It is categorized as a client-side plugin; the current package.json version is 0.2.3, and the license is MIT. Community directory page: https://www.skillhub.cn/plugins/yfwu2020/dsh-recent-sessions; Source code and documentation: https://github.com/yfwu2020/dsh-recent-sessions. SkillHub and similar sites are independent community sites and have no official affiliation with DeepSeek or High-Flyer.

Core Features

The following capabilities are derived from the repository’s README.

Entry Point & Floating Layer

  • A row labeled Recent Sessions appears at the bottom of the sidebar, above Settings. The number on the right indicates the number of items in the list (example text: “Recent Sessions 7”), styled consistently with other sidebar rows.
  • Upon clicking, the list floats out from above this row, covering the workspace list. The card does not use a separate background color but adopts the sidebar background, making it appear as part of the sidebar even when expanded.
  • When the sidebar collapses into a thin rail, the entry row and floating layer are hidden together, occupying no space.

Switching & Interaction

  • Clicking a row in the list switches the session via official navigation; the current session row is highlighted entirely; a breathing dot appears before the title of running sessions.
  • Once the floating layer is expanded, clicking outside the card does not collapse it, facilitating continuous switching between multiple sessions. Click the entry row again or press Esc to collapse it.
  • You can drag the top edge of the floating layer to adjust its height, and double-click the top edge to reset it. The maximum height is limited to the height of the workspace list. After scrolling stops, it automatically aligns to the whole row to prevent the list from stopping in the middle of a text line.

Status & Display

  • Each row can carry status indicators: waiting for approval, waiting for plan confirmation, waiting for an answer, run completed (unread), etc., helping you determine which session is waiting for you.
  • Optionally, the name of the belonging workspace can be displayed on a second line within each row (controlled by a configuration option).

Installation & Activation

The plugin runs with the permissions of the current DSH process; it is recommended to browse the repository source code and LICENSE before installation and only enable it after confirming acceptance.

On the Plugins page on the left side of the Harness, click Add Plugin and fill in any of the following addresses (from the original installation instructions):

github:yfwu2020/dsh-recent-sessions

# Or pin a version
github:yfwu2020/dsh-recent-sessions#v0.2.0

# Or provide the install package URL directly (download from Releases)
https://github.com/yfwu2020/dsh-recent-sessions/releases/download/v0.2.0/yfwu2020-dsh-recent-sessions-0.2.0.tgz

You can also use the npm package name:

@yfwu2020/dsh-recent-sessions

After installation, turn on the switch for @yfwu2020/dsh-recent-sessions in the installed list. The repository and Releases include build artifacts, so compilation is generally not required. If the direct link is unavailable, you can download the .tgz from Releases, extract it, and provide the absolute path to the directory containing package.json in “Add Plugin”.

Configuration

In the profile’s cordis.patch.yml, locate the id: recent-sessions section to modify:

Key Default Description
maxItems 12 Maximum number of items displayed in the list (3–50)
showWorkspace true Whether to display the belonging workspace name on the second line of each row
defaultCollapsed true Whether the floating layer is collapsed by default when opening the Harness
refreshMs 30000 Refresh interval for relative time text (in milliseconds)

The collapse state and panel height are saved locally, so there is no need to reset them every time.

Typical Usage

  1. Look at the bottom of the left sidebar, find the Recent Sessions row above “Settings”, and note the number on the right representing the current list count.
  2. Click the row, and the list floats out from above.
  3. Click a row to switch sessions; the floating layer remains expanded, allowing for continuous switching.
  4. Click the entry row again or press Esc to collapse; if needed, drag the top edge of the floating layer to adjust height, and double-click the top edge to restore default height.

Use Cases & Notes

Who it is for: DSH users who frequently switch back and forth between multiple workspaces and sessions, and who want to jump quickly using a short list sorted by “last activity time” rather than searching only within the workspace tree.

Compatibility & Dependencies: The README states validation on macOS Desktop. The plugin hooks into the Harness sidebar extension points, requiring the host to provide sidebar.footer.action (entry row) as well as the sidebar workspace browsing area and sidebar column (for floating layer positioning and clipping). If the host sidebar structure changes, the floating layer may degrade to a fallback form with a “built-in background color,” while the entry row remains functional. Peer dependencies include @deepseek-ai/cordis (>=4.0.0-rc <5), @deepseek-ai/dsh-host-webserver, etc.; refer to package.json for details.

Version Synergy (Optional): The update log for 0.2.3 mentions that the list panel will stay below the interpretation popup and recommends using it with Select-to-Interpret 0.10.2 and Full View 0.1.6. The three manage their own interfaces independently and do not modify the common Harness floating layer. If you use these plugins simultaneously, you can align versions according to the release notes.

Conclusion

dsh-recent-sessions consolidates “recent sessions” into a single entry row at the bottom of the sidebar and a background-integrated floating layer. It uses status indicators and adjustable height to reduce the switching cost in multi-session scenarios. For details and installers, see the SkillHub Directory Page and the GitHub Repository.

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

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

Xiaoye