Introduction¶
By default, each workspace in the DeepSeek Harness (DSH) sidebar displays a uniform folder icon. When managing multiple projects or running long-lived sessions, this single appearance can easily cause confusion. This plugin replaces “Rename” in the workspace row menu with “Edit,” allowing you to change the name, icon, and color simultaneously through a single dialog, with changes taking effect in the sidebar immediately.
What Is This¶
dsh-workspace-style is a browser-side plugin for DeepSeek Harness, maintained by moonmoonCL. It does not modify the Host’s Workspace records nor introduce new Remote methods. Appearance data is stored in the browser’s localStorage, keyed by a stable Workspace id.
Core Features¶
- Menu: Edit — The “Rename” item in the workspace row’s “⋯” menu is replaced with “Edit,” which opens a unified edit dialog.
- System Default Options — The first entry in the icon list is “System Default Icon” (the native folder, with expanded/collapsed states), and the first entry in the color list is “Follow System” (gray normally, highlighted blue when the workspace contains the current session). Both options are independently selectable: you can change only the icon, only the color, or reset everything to defaults.
- Unified Edit Dialog — Workspace name, workspace icon (1 default + 14 graphics), and workspace color (1 “Follow System” + 14 colors), saved in one action. Both tile rows have matching tile counts, and the dialog edges are aligned.
- Three-State Icons — Each graphic icon mirrors the built-in folder’s full state model: collapsed shows the collapsed outline form, expanded switches to the expanded outline form, and when the workspace contains the current session it further switches to a solid cutout form (filled outline + 20% opacity inner core). Hovering over a tile in the dialog previews the solid form.
- Instant Sidebar Update — After saving, the icon on the left of the workspace row updates immediately. “Default icon + custom color” simply tints the native folder (both collapsed/expanded states and the blue selected state are preserved).
- Name Validation — Consistent with the built-in rename behavior: saving is disabled for empty names, and same-name conflicts are flagged locally; when rename permission is absent, the name field is read-only, but appearance can still be saved.
- Cross-Tab Sync — Other tabs on the same site update instantly via storage events.
- Localization — Built-in Chinese and English strings; follows the current DSH language setting.
Installation & Activation¶
The plugin is published as a DSH bundle.
# Install from npm (recommended)
dsh plugin --profile web add dsh-workspace-style
# Skip npm and install directly from GitHub source
dsh plugin --profile web add github:moonmoonCL/dsh-workspace-style
Replace --profile web with the profile you actually use (e.g., desktop, dsh-tui). You can also install/enable this bundle directly through DSH’s plugin management interface. After installation, simply reload the DSH page — no need to restart the Host session.
Local Development Installation¶
Enable it as a local package in your DSH profile (e.g., ~/.dsh/profiles/web):
- Link the package into the profile’s dependencies (
pnpm add link:/path/to/dsh-workspace-style, or add it topackage.jsonand runpnpm install). - Add
dsh-workspace-styleto the profile’sdsh.profile.bundles. - Reload the DSH Web page; the new plugin is loaded via the client module graph, so no Host session restart is needed.
Typical Usage¶
- In the sidebar, locate any workspace, hover over it, and click the “⋯” button on the right.
- Select Edit.
- Modify the name, pick an icon and a color, then click Save.
Persistence & Limitations¶
- Appearance data is stored in the current browser’s localStorage (key
dsh-workspace-style:styles:v1), keyed by Workspace id, and is not written to the Host database. The stored value is{icon, color}; anullfield means that dimension uses the system default; when both are at their defaults the entry is removed (i.e., “Reset to Default” genuinely clears the saved style). - As a result, the same Workspace does not sync across different browsers / different DSH Web ports; clearing site data will lose the appearance settings.
- Workspace row DOM is rendered by
@deepseek-ai/dsh-client-ui-workspace; this plugin attaches decorations via its stabledata-row-key="workspace:<id>"attribute. If DSH changes that attribute, the decorations will break but existing functionality will be unaffected. - The built-in “Rename” menu item is registered by ui-workspace and cannot be unregistered by external plugins, so this plugin only hides that item in menus containing the “Edit” entry, based on the current language strings.
- Icon geometry is sourced from Phosphor Icons (MIT License): outline forms use the regular weight, solid cutout forms use the duotone weight; rendered in the sidebar via CSS mask. “Follow System” color directly inherits the built-in gray/blue selection logic; custom colors are fixed color values, using the same set for both dark and light themes.
- The built-in folder icon’s expanded/collapsed states and blue selection highlight are maintained natively by the host; the
folderentry in the plugin catalog uses the same geometry as the host (no solid variant, to maintain visual consistency with “System Default”).
Use Cases & Cautions¶
- Ideal for developers who need a unique identifier for each workspace, making it easy to quickly distinguish different sessions or projects in the sidebar.
- The plugin runs with the current dsh process permissions; review the source code and license before installing.
- Note that appearance data is stored only in the current browser’s localStorage and will not sync across different browsers or DSH Web ports.
Closing¶
dsh-workspace-style makes DeepSeek Harness’s sidebar workspaces more distinguishable through a unified edit dialog and three-state icons. The plugin is released under the MIT License and can be found on GitHub: https://github.com/moonmoonCL/dsh-workspace-style