Introduction

The DSH profile plugin allows moving common operations near the desktop entry. dsh-sidebar-mode is designed to move Agent preset switching from the settings panel to the “New Session” button: clicking the small text on the far left of the button pops up the preset menu.

Below, I will introduce what it is, the capabilities it provides, and the installation and enablement steps.

What is it

dsh-sidebar-mode is a DSH profile plugin maintained by Meredith2328. It embeds the switching of the four default modes (Standard / PTC / Creative / Minimalist) into the “New Session” button, allowing preset selection directly before creating a new session. Switching syncs bidirectionally with the Agent presets in the settings.

Core Features

  • Display preset small text labels within the “New Session” button; clicking the tag pops up the preset menu; clicking other areas of the button still creates a session as usual.
  • Automatic discovery of preset lists: in addition to factory presets, custom or newly created presets will appear in the menu without modifying the plugin; presets with loading failures are automatically excluded according to official rules.
  • When switching presets, write to the global default and immediately apply it to the current blank session (if any); the settings panel, sidebar button, and the new session page badge remain synchronized.
  • When a preset name is too long, the label inside the button is automatically truncated to an ellipsis, and the full name is displayed on mouse hover.
  • Follows Day/Night themes and uses DSH theme tokens.
  • Automatically hides when the sidebar is collapsed into an icon bar.
  • Only changes the global default and affects the current blank session, without affecting running sessions.

Installation and Enabling

First, execute the installation command:

pnpm add "github:Meredith2328/dsh-sidebar-mode"

After installation, add dsh-sidebar-mode to the dsh.profile.bundles list in package.json, then restart DSH Desktop.

The documentation states that it declares peerDependencies as cordis ^4.0.0-rc.7 and is a pure client plugin, with lib/index.mjs being an empty apply.

Typical Usage

  1. Click the small text on the far left of the “New Session” button to pop up the preset menu; selecting it switches the current global default and applies it to the current blank session (if any).

  2. Maintain the same default preset selection across the settings panel, sidebar button, and the new session page badge.

  3. When uninstalling, remove it from dsh.profile.bundles and execute:

pnpm remove dsh-sidebar-mode

Applicable Scenarios and Notes

Suitable for users who frequently create new sessions in DSH Desktop and wish to reduce the path for Agent preset switching.

Notes:

  • It only affects the current blank session and does not change running sessions.
  • The documentation does not provide license information or clear permission details. You should check the source code yourself before installing; if you add dsh.profile.bundles and launch DSH Desktop, the specific running permissions should be based on the source code and DSH’s actual configuration.
  • Installation dependencies are managed by pnpm; peerDependencies is cordis ^4.0.0-rc.7.

Conclusion

The value of dsh-sidebar-mode lies in placing common preset switching near the new session entry, reducing the operations of switching back and forth in the settings panel.

Reference Links:

  • GitHub Repository: https://github.com/Meredith2328/dsh-sidebar-mode
  • Directory Page (from plugin clue): https://www.skillhub.cn/plugins/Meredith2328/dsh-sidebar-mode