Introduction¶
The session list in the DeepSeek Harness sidebar tends to grow quickly, and after extended use it becomes hard to tell at a glance what each session is working on. A common workaround is to add prefixes or notes to session titles, but that’s not very intuitive. X-Wide Color Tags assigns a color label to each session so that sessions sharing the same color naturally cluster together visually.
What Is This¶
- Name: X-Wide Color Tags (
dsh-xwide-color-tags) - Maintainer: XWIDE
- Category: Fun Themes
- Highlight: Fun Themes
- Problem solved: Quickly distinguish different tasks in the session list and reduce the overhead of manually tagging titles.
- Technical notes: Pure front-end plugin, zero runtime dependencies, writes only to the browser’s
localStorage, and never touches the host’s config files.
Core Features¶
Two Entry Points¶
- The “Session Color” swatch in the right-click context menu.
- A small circular dot at the left edge of the session row that opens a pop-up palette.
Session Coloring¶
Once a color is selected, a vertical bar of the same color appears on the left side of the session row and the title text is tinted to match. Colored sessions show a 10 px dot at the left edge of the row, whose color equals the session’s assigned color. Clicking the dot opens the color palette. A white border on the dot indicates that the color is the one currently in use.
Color Palette Contents¶
- 4 preset swatches: Fluorescent Yellow
#ffc300, Fluorescent Green#2ecc71, Fluorescent Cyan#00c8ff, Fluorescent Pink#ff63c5. - Rainbow block: Opens a custom-drawn HSV color picker (see below).
- ✕ Clear: Appears only when the current session already has a color; removes the color from this session.
Right-Click to Clear or Delete Custom Colors¶
Right-clicking inside the pop-up palette acts uniformly based on position:
- Preset / Rainbow block: Clears the color from the current session and closes the palette.
- Custom swatch in “My Colors”: Deletes that single custom color (the palette redraws in place with one fewer slot); the session’s assigned color is unchanged.
- Empty area of the palette / ✕ button: Closes the palette (✕ also clears the session’s color).
Every swatch’s tooltip explains exactly what the click will do.
Custom HSV Color Picker¶
- The left side is a Value/Saturation grid, the right side is a Hue strip, below is a Value slider, plus a current-color preview.
- Pick color = adds the current color to “My Colors” and immediately applies it to this session; Confirm = adds to “My Colors” only; Cancel = writes nothing.
- Collected colors are deduplicated by hex value, with a cap of the 8 most recent; any overflow is evicted from the front of the queue.
Reset to Defaults¶
When “My Colors” is non-empty, a “Reset to Defaults” button appears at the bottom of the palette. One click clears the entire custom-color row and the palette redraws in place. It does not affect session colors (use ✕ for that), and there is no secondary confirmation.
Storage & Self-Check¶
All data is written to the browser’s localStorage under the key prefix xwcolor.:
xwcolor.map:{ sessionId: "#rrggbb" }— the session → color mapping.xwcolor.customs: The “My Colors” list (up to the 8 most recent).xwcolor.probe: Self-check record containing candidate selector hit counts and sample keys, used to locate the session-row selector.
Known Limitations¶
- Port change = storage change. The desktop GUI’s local port changes on every restart, and the browser partitions storage by origin (which includes the port). After a port change,
xwcolor.*entries may end up on the old origin and become unreadable, causing colors and custom colors to fall back to defaults. This is the host’s origin behavior; the plugin currently performs no migration. - Session-row DOM structure is unverified in production. During development the real UI required authentication (returning 401), so headless browsers could not access the logged-in page. All evidence for coloring behavior and menu-item rendering comes from DOM assertions in headless browsers; the effects have not been individually verified on a live human-facing UI.
- Clearing custom colors is irreversible, and there is no “delete all but this one” bulk-select option.
Relationship with Codex UI¶
Verified against @michengai/dsh-codex-ui 2.3.0: its global button style-overwrite scan excludes elements with [data-context-menu-trigger], [aria-haspopup="menu"], and [data-row-key]. All color swatches in this plugin carry data-context-menu-trigger="1" + role="menuitem", placing them squarely on that exclusion list so their styles are left untouched. The slot used is sidebar.workspaces.session.menu.item (order 900, positioned before “Archive” and after Codex UI’s unread-item slot at order 150).
Install / Uninstall¶
- Install:
npm i dsh-xwide-color-tags, or place this directory underlocal-plugins\in your profile and add the load entry tocordis.patch.yml. - Uninstall: Delete this directory + remove the load entry and junction from the profile; the three
xwcolor.*keys remain inlocalStorage, and no leftover files are created.
Use Cases & Notes¶
- Suited for users who need to quickly distinguish tasks in the session list.
- The plugin runs with the current
dshprocess privileges. Review the source code and license (MIT) before installing. - Port changes invalidate stored data. If colors are lost, verify whether the origin has changed.
Closing¶
X-Wide Color Tags uses color to label sessions and reduce visual clutter. View it on GitHub.