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¶
Install from GitHub (Recommended)¶
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 installin the same profile after installation.
It will recomputenode_modulesbased on the lockfile and replace thelink:symlink with the registry version.
If your plugin manager reportsERR_PNPM_RESOLUTION_POLICY_VIOLATIONS_UNHANDLED
(missingno handleResolutionPolicyViolationscallback due tominimumReleaseAgepolicy),
you can work around it by manually registering as shown above.
Post-Installation Verification¶
- Refresh the page.
- The right-click context menu on any session row should display “Custom Appearance”.
- Pick a color and click “Done” — the session title should change color; it persists after a page refresh.
- 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¶
- In the sidebar, right-click any session or any workspace row
- Click “Custom Appearance” in the menu
- Adjust color / glow / weight / shadow — the preview below updates in real time
- 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 DOMtests/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