Introduction¶
In DeepSeek Harness (DSH), the area to the right of every Session row in the sidebar often contains operations such as Star, Todo, Pin, and Archive. When multiple client plugins register buttons to the same “seat” (area), the display order usually depends on the installation and loading sequence, rather than the layout you expect. Writing sessions for plugins also lack a unified entry point to read the current layout, register their own buttons, or receive notifications when the layout changes.
The following introduces dsh-session-quickbar (Maintainer: 879745uhjun, Category: Client), which provides a configurable quick action bar to the right of each Session row and establishes a bidirectional channel with the hosting tool session_quickbar to manage the plugin’s Session. The plugin has 1 star on GitHub; the community directory entry is at SkillHub Item, and it has no official affiliation with DeepSeek / Hypofinance; the directory site is independent of the main product ecosystem.
What is it¶
dsh-session-quickbar is a client-side plugin for DSH (Version 0.1.0, License MIT). It registers a quick bar at sidebar.workspaces.session.row.action. When takeover is enabled by default, it exclusively occupies that seat, hiding other registered items in the same slot. What is actually displayed on the row is determined by the settings page, rather than the order of registration by installed plugins.
In addition to built-in buttons, other client plugins can contribute buttons via window.dshSessionQuickbar.register; writing sessions for plugins can read/modify layouts, subscribe to changes, and send messages to other Sessions via session_quickbar.
Runtime environment requirements (from package.json engines):
dsh >= 0.2.2-rc.1 < 0.3.0
Core Features¶
Exclusive Seat and Built-in Buttons¶
The quick bar occupies the action area on the right side of the Session row by default in takeover mode. After disabling takeover, it can coexist with buttons from plugins that have not yet migrated.
Built-in capabilities reuse existing data and public services:
- Star: Read/Write
session-starsroute - Todo Box: Read/Write
session-todosroute - Pin and Archive: Via the public
uiWorkspaceservice (follows the same stop and confirm flow as the host when archiving a running Session) - Copy Session ID: Provided but hidden by default
Global and Single Session Layout¶
First set global defaults, then override for individual Sessions as needed:
- Global default: The layout inherited by all Sessions, and the takeover toggle
- One session: Toggle and sort individually after selecting a Session; Use global layout can cancel the override
- Restore defaults: Clear explicit layouts and restore the built-in order (star → todo → archive → pin)
Hidden buttons still take up space and can be re-enabled in settings; order is adjusted using Up/Down in the settings page. Layout persistence is in session-quickbar.json under $DSH_HOME; deleting this file restores defaults. After disabling the plugin, the strip disappears, but plugins like Star and Todo retain their own buttons.
Settings Page and Real-time Sync¶
Two ways to open:
- Left panel list → Quick bar
- Any Session row menu → Quick bar settings…
The settings page allows editing global or single-session layouts, viewing the source of each button, and listing subscribed Sessions and recent messages for the channel. Layout changes are pushed via Server-Sent Events, allowing redraws in open windows without a refresh.
Plugin Census and Host Channel¶
The settings page lists installed profile bundles with browser half-ends and marks them as Built in, Registered, Available, or Not loaded, helping to determine which plugins have not yet integrated with the quick bar. The agent side can use session_quickbar action=plugins to get the same census result.
session_quickbar (Host tool) allows Sessions to:
- Read or modify layout
- Register buttons currently under development
- Subscribe to layout changes
- Send messages to other Sessions
Every layout change injects a short message into subscribed Sessions; registered owners are informed where their buttons landed. The target Session can respond using notify, enabling bidirectional communication between the quick bar and the maintaining Session of the plugin.
Interface Location¶
When hovering over a Session row, the quick bar is on the right side of the title (order follows the settings page):
sidebar row (hovered)
┌──────────────────────────────────────────────────────────────┐
│ ● 会话标题 … ★ ☑ ▣ 📌 │
└──────────────────────────────────────────────────────────────┘
Quick bar, order from the settings page
Installation & Enablement¶
DSH follows the “everything is a plugin” philosophy; before installing, please read the source code and MIT license in the GitHub repository and confirm your local DSH version satisfies the engines range above. The plugin runs under DSH process permissions and, like installing any community plugin, you should first assess the trust boundary.
The installation instructions provided on the SkillHub directory page are: please install DSH plugin 879745uhjun/dsh-session-quickbar (Full steps are subject to the directory page and current DSH documentation; since no copy-pasteable dsh plugin add type command is provided in the materials, please do not manually concatenate it based on the repository name).
After enabling and loading the client package, the quick bar appears to the right of the sidebar Session rows; you can adjust takeover and button order in the settings page.
Typical Usage¶
Regular Users: Changing Layout and Takeover¶
- Open the Quick bar settings page
- Adjust takeover and the visibility/order of buttons in Global default
- If a Session needs a different layout, go to One session, select the target, and override; use Use global layout when not needed
- To return to the plugin’s built-in default order, use Restore defaults, or delete
$DSH_HOME/session-quickbar.json
When takeover is enabled, CSS hides the host’s archive, pin, etc., entries in the same slot, which are drawn by the quick bar itself; the rules fail when the strip is not rendered or the plugin is disabled, and the original entries are restored.
Other Plugins: Registering Inline Buttons¶
Any client plugin can contribute buttons without modifying this package. Call the returned dispose() when uninstalling the plugin:
const dispose = window.dshSessionQuickbar.register({
id: 'my-button',
owner: 'my-plugin', // Optional, shows as Registered on census page
labels: { zh: '我的按钮', en: 'My button' },
hint: { zh: '一句话说明', en: 'One-line hint' },
order: 120,
icon: 'M3 8h10', // 16×16 path data; can be omitted if Component is present
isActive: (sessionId) => false,
onActivate: (sessionId) => { /* … */ },
subscribe: (listener) => { /* listener called when isActive changes */ return () => {} },
})
Reserved IDs: star, todo, archive, pin, copy-id. You can also use Component: ({ sessionId }) => … instead of onActivate. For the full contract, Host tool, and migration steps from “Custom-drawn row buttons”, see CONTRACT.md in the repository.
Writing Plugin Sessions: Tools and Channels¶
- Use
session_quickbarto read/modify layout, register buttons, subscribe to changes, and send messages - Use
session_quickbar action=pluginsto check ecosystem integration status - Channel targets can be parsed by exact Session ID, exact title, or unique title fragment; titles may not be reported by the browser if the settings page is not open, so passing an exact ID is recommended
- Messages queue when the target Session is not loaded; they are injected sequentially and woken up once after startup; you can view queued items in the settings page under Session channel → Waiting for delivery
Applicable Scenarios & Notes¶
Who is this for
- DSH users who want to unify the order and visibility of operations to the right of the sidebar Session rows
- Plugin authors developing client-side plugins who need a standard seat registration API
- Agent workflows that use Sessions to maintain plugin UI and need to interact with quick bar layout changes
Limitations (from upstream documentation)
- Only controls the seat where the quick bar is located; other rows, row menus, and conversation top bars are not affected
- In takeover mode, custom-drawn buttons from unmigrated plugins are hidden, rather than being embedded directly into the quick bar’s React implementation
- Layout change notifications do not wake Sessions by default;
notifywill wake a loaded idle Session by default (usewake: falseto queue silently) - In touch layouts, only the pin operation remains visible, and the quick bar follows the same host rules
Conclusion¶
dsh-session-quickbar consolidates the area to the right of the Session row into a configurable quick bar and uses session_quickbar to connect the layout with the plugin authoring Session. If you are stuck with multiple plugins fighting for the same action area, or need a standard registration method for new plugins, you can first compare the settings page census with CONTRACT.md, and then complete the installation and source code verification on SkillHub or GitHub.
- Directory page: https://www.skillhub.cn/plugins/879745uhjun/dsh-session-quickbar
- Repository: https://github.com/879745uhjun/dsh-session-quickbar