dsh-standalone-settings: Standalone Entry for DeepSeek Harness Settings

The settings entry for DeepSeek Harness (DSH) desktop version is currently hidden within a secondary menu behind the account button at the bottom of the sidebar. To open settings, users must first click the account button, then click the settings item in the secondary menu, involving multiple steps. This plugin leverages official extension points to extract the settings entry from the account menu and fix an independent settings button at the right end of the account button at the bottom of the sidebar, reducing click depth.

What is this

dsh-standalone-settings is a client plugin maintained by Afufuafa, licensed under MIT. It utilizes only the official slot extension points without modifying host files, allowing for a clean restore upon uninstallation.

Core Features

  1. Standalone Settings Button: Displays an independent settings button to the right of the account button at the bottom of the sidebar. Clicking it executes the host’s settings.open command.
  2. Zero-Config: No additional configuration required; takes effect immediately after installation and page refresh.
  3. Smart Positioning: Displays only in wide rail mode to avoid crowding the account button; yields space to the account menu under the 56px rail.
  4. Interaction Feedback: Displays shortcut key hints (e.g., “Settings (Ctrl+,)”) when hovering over the button.
  5. Menu De-duplication: Automatically hides the duplicate settings row in the account menu to prevent duplicate entries.

Installation and Enabling

Desktop Plugin Page

Install via the package name on the DSH plugin page:

dsh-standalone-settings

Command Line

Use the dsh plugin command; arguments are forwarded as-is to the package manager in the profile directory:

# From npm (after publication)
dsh plugin --profile <profile> add dsh-standalone-settings

# Directly from GitHub repository
dsh plugin --profile <profile> add git+https://github.com/Afufuafa/dsh-standalone-settings.git

Note: If the button does not appear after installation, please refresh the page once.

Configuration

The plugin itself has no configuration file. Behavior is controlled by modifying constants at the top of client.js. Changes take effect after a page refresh.

Constant Default Value Function
INLINE_WITH_ACCOUNT true Controls whether the button is fixed to the right end of the account row. Setting to false reverts to the slot’s default full-row button style.
HIDE_ACCOUNT_MENU_ENTRY true Controls whether to hide the native “Settings” row in the account menu.

How it Works

  1. Slot Registration: The plugin registers into the official sidebar.footer.action slot and mounts sentiently.
  2. Side-by-Side Positioning: In wide rail mode, it uses CSS position: absolute to position the button at the right end of the account row, reserving width to prevent obscuring the account button.
  3. De-duplication: Precisely hides the duplicate settings item in the account menu via the accessibility tree combination of the shortcut service.

Notes

  • Compatibility: Depends on the host contract sidebar.footer.action slot and settings.open command. The development validation environment is DSH Desktop 0.2.0-rc.2.
  • Display Limitations: Displays side-by-side only in wide rail mode; yields to the account menu in the 56px rail.
  • Panel Behavior: The panel is always “open” and does not toggle. Clicking repeatedly is equivalent to invoking “Open Settings” again, rather than closing an already open panel.
  • Non-invasiveness: Does not modify host files at all, uses only official extension points, and rules disappear automatically upon uninstallation.
羽毛球分组比赛记分
小程序二维码

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

Xiaoye