dsh-session-beartify: Customizing the Appearance of DSH Sidebar Sessions and Workspaces

Introduction

The session rows and workspace rows in the DeepSeek Harness (DSH) sidebar are rendered by the host with fixed styling that cannot be directly modified. If developers want to distinguish different sessions or workspaces by color, they typically have to rely on existing themes or resort to more complex modifications of the host code. This plugin adds a “Custom Appearance” entry on top of the host-provided menu and dialog capabilities, allowing per-session titles and per-workspace names to individually set color, text glow, font weight, and text shadow.

What This Is

dsh-session-beautify is a DSH plugin developed by maintainer chuilian. It does not replace the sidebar or redraw the tree; instead, it registers menu items and dialogs to write styles into the host row elements’ inline style. Styles are persisted in the browser’s localStorage under the key dsh.sessionBeautify.styling.v1, and are automatically restored after refreshing or restarting DSH.

Core Features

  • Right-click any session row — the menu gains a “Custom Appearance” option
  • Right-click any workspace row (project directory in the sidebar) — “Custom Appearance” appears as well
  • In the dialog you can configure:
  • Color: preset palette / color picker / RGB channels
  • Text glow intensity
  • Font weight
  • Text shadow
  • Live preview at the bottom
  • Click “Done” for immediate effect; “Clear Custom” restores defaults in one click
  • Styles are saved separately per session and per workspace, independent of each other (keyed by id, so renaming a workspace doesn’t lose its color)
  • The style sheet is persisted in the browser’s localStorage — survives refreshes and DSH restarts

Installation & Activation

dsh plugin --profile <profile> add github:chuilian/dsh-session-beautify

You can also enter the same source in the Web GUI’s plugin manager. After installation, simply refresh the page.

Install from a Source Directory (For Development)

git clone https://github.com/chuilian/dsh-session-beautify.git
dsh plugin --profile <profile> add link:/absolute/path/to/dsh-session-beautify

The link: registration is scattered across three locations; missing even one will cause the next pnpm install to overwrite it:

1. ~/.dsh/profiles/<profile>/package.json — both sections need to be updated:

{
  "dependencies": {
    "dsh-session-beautify": "link:/absolute/path/to/dsh-session-beautify"
  },
  "dsh": {
    "profile": {
      "bundles": [
        "...existing bundles remain unchanged...",
        "dsh-session-beautify"
      ]
    }
  }
}

2. The importers section in ~/.dsh/profiles/<profile>/pnpm-lock.yaml:

      dsh-session-beautify:
        specifier: link:/absolute/path/to/dsh-session-beautify
        version: link:../../plugins/dsh-session-beautify

3. ~/.dsh/profiles/<profile>/node_modules/dsh-session-beautify — a relative symlink pointing to the source directory:

cd ~/.dsh/profiles/<profile>/node_modules
ln -s ../../../plugins/dsh-session-beautify dsh-session-beautify

After making changes, verify all three locations one by one, then restart DSH.

⚠️ Do not run pnpm install in the same profile after installation.
It will recompute node_modules based on the lockfile and replace the link: symlink with the registry version.
If your plugin manager reports ERR_PNPM_RESOLUTION_POLICY_VIOLATIONS_UNHANDLED
(missing no handleResolutionPolicyViolations callback due to minimumReleaseAge policy),
you can work around it by manually registering as shown above.

Post-Installation Verification

  1. Refresh the page.
  2. The right-click context menu on any session row should display “Custom Appearance”.
  3. Pick a color and click “Done” — the session title should change color; it persists after a page refresh.
  4. Right-click a workspace row in the sidebar — “Custom Appearance” appears in the menu as well; selecting one changes that workspace’s name color.

If the page shows “Failed to load plugins,” it usually means only one of the three locations above was updated.

Usage

  1. In the sidebar, right-click any session or any workspace row
  2. Click “Custom Appearance” in the menu
  3. Adjust color / glow / weight / shadow — the preview below updates in real time
  4. Click “Done” (or “Clear Custom” to revert)

Explicitly Not Implemented

Not Done Reason
Icons The leading cell in a session row is the official status indicator (awaiting interaction / running / complete) — no icon slot available
Text outline/stroke Stroke would bleed into the adjacent timestamp; suppressing it requires extra CSS with a poor benefit-to-effort ratio
Theme-adaptive colors Fixed hex values are stored, so colors remain unchanged when switching light/dark themes
Global default appearance Each session either has its own appearance or none — no fallback is provided
Cross-device sync The style sheet is intentionally kept local to the browser; each device manages its own
Full-row background for workspaces Only the name is colored, to avoid conflicting with the host’s hover/selection background

Development

npm test        # 44 test cases: appearance model (pure logic) + bundle contract (vm sandbox)

Tests are split into two layers:

  • tests/core.test.js — pure logic: style model, normalization rules, color conversion, writing styles to the DOM
  • tests/bundle.test.js — bundle contract: only whitelisted platform modules are required, seat shape is correct, no crash when services are missing

Use Cases

Ideal for developers who need to distinguish different sessions or workspaces in the DSH sidebar using color, glow, or shadow. The plugin runs with the current dsh process’s permissions; review the source code and license before installing.

Closing

This plugin leverages the host-provided menu and dialog capabilities to provide independent style control for each session title and each workspace name. Styles are stored locally in the browser and persist across refreshes. For more details, refer to the plugin catalog page and the GitHub repository.

  • Catalog page: https://www.skillhub.cn/plugins/chuilian/dsh-session-beautify
  • GitHub: https://github.com/chuilian/dsh-session-beautify
羽毛球分组比赛记分
小程序二维码

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

Xiaoye