Introduction¶
The terminals in DeepSeek Harness (DSH) are “session-private”: each session has its own dedicated terminal area in the right sidebar, and switching to another session hides the previous terminal. When running multiple sessions simultaneously, open terminals are scattered across different sessions, making it hard to quickly tell “which terminal belongs to which session” or to check their status in one place.
dsh-terminal-hub, as a DeepSeek Harness client plugin, aggregates all session terminals into a single sidebar panel, providing a cross-session terminal overview, status display, and quick navigation.
What It Is¶
dsh-terminal-hub is a client plugin maintained by farons. It presents all session terminals in a sidebar panel, displaying runtime status, working directory, and other metadata, with search and tag support; it also includes a read-only Hosts (launcher candidates) tab that shows the list of candidate launchers registered by the terminal controller.
Core Features¶
Cross-Session Terminal Overview¶
The plugin retrieves all sessions via the client’s ctx.sessions.list, then fetches each session’s terminal list through remote.terminal.list(sessionId). Even if a session is currently not open, its terminal information remains visible in the overview panel.
Click to Navigate and Select Terminal¶
Clicking any terminal row calls ctx.uiWorkspace.openSession(sessionId) to switch to the corresponding session. The plugin waits for that session’s sidebar to finish rendering, then locates the terminal’s tab from the cross-session tab registry (sidebarRight.openTabs) and the controller binding (webTerminals.boundTerminal), expands the sidebar, and calls focus(tabId) to select the terminal.
If no corresponding tab exists and the terminal is still running, the plugin opens a new tab following the official terminal UI path and binds it via webTerminals.bind(...).
Status & Metadata Display¶
Each terminal row shows:
- Green dot: running
- Gray dot: exited
- Red dot: failed
- A label indicating the source (user / Agent)
The subtitle displays real title · shell · working directory, with the full path visible on hover.
Dual Titles & Renaming¶
The primary title is the “display name”: it prioritizes a custom name, falls back to the “real title,” and finally falls back to shell + short id. The real title is always visible as a gray sub-line.
Double-clicking the primary title allows in-place renaming within the panel. This name is stored only in the browser’s localStorage and does not modify the name in the DSH terminal header.
Auto-Numbering & Tag Colors¶
Terminals within the same session, same directory, and same shell are automatically assigned numbers like #1 #2. You can add short tags to a terminal and choose from five colors; these settings are only effective within this panel.
Search & Two Tabs¶
The top search bar can simultaneously filter by display name, real title, tags, directory, session, and launcher name and path.
The panel contains two tabs:
Terminals (N): the terminal list, where N is the current search result countHosts (M): the launcher candidate list, where M is the candidate count
Hosts Tab (Read-Only)¶
The Hosts tab displays the launcher candidates actually registered by the terminal controller. It reads from ctx.webTerminals.launchShells(sessionId, signal) or remote.terminal.shells(sessionId, signal), applies no filtering, and provides no configuration options. The top of the tab shows the source information and candidate count.
Close Terminal Confirmation¶
Closing a terminal requires a secondary confirmation. After confirming, it directly calls remote.terminal.close(sessionId, id). The Gateway validates the caller’s agentId, so you can only close terminals in the current session; attempts to close terminals across sessions will be rejected with a prompt.
Installation & Enablement¶
Install from npm:
dsh plugin --profile web add dsh-terminal-hub
Install from GitHub (tracks the latest code):
dsh plugin --profile web add github:farons/dsh-terminal-hub
Local development:
git clone https://github.com/farons/dsh-terminal-hub.git
cd dsh-terminal-hub
dsh plugin --profile web add link:$PWD/dsh-terminal-hub
After installation, restart dsh web. Client plugins are loaded into window.__DSH_BOOT__ at startup. Subsequent changes to client.js are typically hot-reloaded via dsh-client-hmr; press F5 to refresh if necessary.
Typical Usage¶
After installation and restart, a terminal overview panel appears on the left side of the DSH main interface. Open multiple sessions and launch terminals—the panel will automatically list all terminals, grouped by session.
Click a terminal row: the left session list automatically switches to the corresponding session, and the right sidebar expands and selects that terminal. If the terminal does not yet have a tab open in the current window, a new tab is automatically created and selected.
In the Hosts tab, you can view the launcher candidates registered in the current environment, helping you confirm which shells / launch paths are available.
Use Cases & Caveats¶
- Ideal for developers or ops engineers who need to manage multiple sessions and switch between terminals frequently
- The plugin runs with the current DSH process’s permissions—review the source code and license before installing
- If the DSH version lacks the
sidebarRightservice, clicking a terminal will only switch sessions without selecting the terminal - The selection operation has a 4-second time limit; if the sidebar does not render in time, the selection is abandoned and a console warning is logged
Conclusion¶
dsh-terminal-hub aggregates terminals scattered across sessions into a single sidebar panel, providing status viewing, quick navigation, and search capabilities—so “where did I open that terminal” is no longer a question. It is well suited for developers who frequently operate terminals across sessions.
- Catalog page: https://www.skillhub.cn/plugins/farons/dsh-terminal-hub
- GitHub: https://github.com/farons/dsh-terminal-hub