Introduction¶
When running multiple workspaces and sessions in parallel for long periods within DSH desktop, the hierarchy, order, and status of the left-hand session area often determine the switching costs. The official sidebar.workspaces provides basic capabilities, but if you prefer a Codex-style partitioning layout (pinned/project grouping, three-level indentation, frozen headers) and wish to replace the entire left-hand session UI without modifying the Harness source code, you need a client plugin that acts merely as a placeholder without taking over the data source of truth. dsh-session-manager (npm package @pianner/dsh-session-manager), released by maintainer NianjunZou, renders a reversible overlay on the official slot. The session data and order remain read and written by the DSH host service.
What is this¶
dsh-session-manager is a local plugin for the DSH desktop web client: it renders a Codex-style session management interface on the left within the single placeholder cell of sidebar.workspaces. This includes a pinned area, project sessions grouped by workspace, status dots, and various sorting/filtering views. It does not modify DSH/Harness source code and does not become a secondary source of truth for session data; if disabled or uninstalled, the slot registration disappears with the plugin’s lifecycle, and the official session area automatically restores itself. See the repository and documentation on GitHub, and the community directory page on SkillHub. The current npm version is 0.1.7, licensed under MIT.
Core Features¶
The following capabilities are explicitly defined in the README and plugin contract; do not assume unlisted features are implemented.
Layout and Partitioning¶
The structure consists of a Level 1 heading “Workspaces” → a “Pinned Sessions” header band (ordered by the host’s pinnedSessionIds, deduplicated against workspace groups) → a “Project Sessions” header band → workspace groups (folder icon + expand/collapse). Both Pinned Sessions and Project Sessions are collapsible; headers remain pinned to the top while scrolling, and the header of the entered workspace group takes over when navigating into it. Workspaces are directory rows with one level of indentation, and sessions are indented one level further; rows directly under partition headers (Pinned area, search results) use light indentation, aligning with Codex session list conventions.
Order and Pinning¶
- Session Order: Drag rows (pointer gestures, not HTML5 drag-and-drop), use
Alt+↑/↓, or select “Move Up / Move Down” from the row menu. All these actions uniformly call the host’sworkspaces.insertSessionBefore, writing the order to the host’s durable storage. - Pinned Area Reordering: The pinning order is determined by the host’s pin set; the plugin rewrites the pin order via minimal suffix adjustment during dragging, displaying the target order immediately during the drag.
- Workspace Sorting: Drag the header to call
workspaces.insertBefore, consistent with the behavior of official directory rows.
Status and Priority¶
Each row features a status dot using the official StateDot vocabulary (Waiting / Running / Completed Unread / Idle); information such as child sessions and background tasks is merged into the main dot’s hover tooltip and screen reader text, without additional markers. Failure status is not displayed starting from 0.1.7: The client SessionStatus lacks a failure bit, and earlier agents reported false positives in testing. See the “Status Trade-offs” section in the repository for details.
Priority P1–P4 is displayed as a numeric capsule at the end of the row, persisted via the official dsh-client-store (key dsh-session-manager.priority). The header P badge allows entry into the priority view, where checked items can be batch-modified or cleared (performed in a single storage write).
Search, Pagination, and Views¶
- Session Search: Local matching of titles/workspace names + host message index (
sessions.search), with results sorted by recent activity and displaying matched snippets. - Pagination: Default 5 rows per section; excess rows can be expanded via “Expand remaining N sessions / Collapse”. Sessions with Running, Waiting, or Unread status within the first 50 rows are automatically promoted and not hidden by collapsing.
- View Options: Manual order / Recent activity; Hide / Show / Only show archived.
Row Actions and Icons¶
Row menus align with official capabilities in directions including: Pin / Unpin, Rename, Fork, Archive / Unarchive, Move Up / Move Down, Copy Session ID, Copy Working Directory. All icons are sourced from dsh-client-ui-primitives; text symbols are not used as substitutes.
Installation and Enablement¶
Prerequisites (from original source): DSH desktop on macOS; development and testing align with target version dsh-v0.2.1-alpha.5 (contracts such as client-ui-slots). Other DSH versions may require adaptation.
- Install the plugin from npm (replace
<profile>with your profile name):
dsh plugin --profile <profile> add @pianner/dsh-session-manager
-
Add
@pianner/dsh-session-managertodsh.profile.bundles. -
Restart DSH. For full deployment, uninstallation, and rollback instructions, see the repository
docs/DEPLOY.md.
It is recommended to review the plugin source code and MIT license before installation; the plugin runs under the current DSH process permissions. Like any DSH plugin, only install from trusted sources.
Typical Usage¶
Most daily operations are completed within the left-hand overlay without needing an additional CLI.
Adjust Session Order: Press and hold to drag before the target row, or use Alt+↑/↓, or select “Move Up / Move Down” from the row menu.
Organize Pinned Items: Drag to reorder within the “Pinned Sessions” area; toggle items within workspaces via the Pin / Unpin menu items.
Batch Process by Priority: Click the header P badge to enter the priority view, check sessions, and modify or clear P1–P4 in a single action.
Find Sessions: Use the search box; locally matches titles and workspace names, and calls the host sessions.search to retrieve message content.
Switch List Views: Select manual order or recent activity in view options, and toggle whether to show archived sessions.
For more detailed operation instructions, see the repository docs/USAGE.md.
Applicable Scenarios and Notes¶
Who it is for: Developers already using DSH desktop on macOS who desire a left-hand session area close to Codex partitioning and interaction, and who accept “replacing the entire rendering of official sidebar.workspaces”.
Trade-offs with Official UI (while plugin is enabled): sidebar.workspaces is an exclusive placeholder, so the official WorkspaceBrowser no longer renders; the official 5 sub-slots (such as session menu items registered by third parties, inline buttons, ui-schedule task markers, etc.) will not appear during the placeholder period—the plugin implements equivalent menus itself, but currently lacks an equivalent implementation for scheduled task markers. These contributions restore immediately upon disabling or uninstalling.
Explicitly Not Provided or Limited by Host API: Permanent session deletion, cross-workspace moves, persistent writing of native “unread” status, etc., are not provided by the plugin as the target DSH version lacks callable public write interfaces for these.
Development and Verification (for maintainers or secondary developers): npm run verify in the repository includes build, tests, and plugin contract checks; aligning with host source code requires DSH_SOURCE=~/deepseek-harness npm run verify:align (this lane self-skips if source is absent).
Conclusion¶
dsh-session-manager turns the Codex-style left-hand session list into a reversible DSH client plugin: data and order remain with the host, while UI and gestures are projected within the slot. If you wish to verify the categorization and introduction, you can visit the community directory dsh-session-manager; for source code, contracts, and 0.1.7 acceptance records, see the GitHub repository.