Introduction¶
When multiple sidebar client plugins are installed in DeepSeek Harness (DSH), the entries in the “Full-Screen Panel” tend to keep growing upward based on content. In the official layout, this area is commonly flex:none and does not actively yield space to the “Workspace / Session List” below. The result is that the workspace is compressed to near-zero height, often leaving only one and a half rows visible for sessions—this is difficult to solve by simply deleting plugins, as it essentially stems from the fact that there is no guaranteed baseline space to allocate between these two areas.
Below is an introduction to the community plugin dsh-sidebar-fit (maintainer Lstalu, category: Client). It inserts a draggable divider between the Full-Screen Panel and the Workspace, hiding rows of panels that don’t fit into the official “More” menu (or creating a custom “More N Items” if the official one is absent). It is a purely browser-side enhancement that does not modify official plugin source code. The repository and documentation are linked at the end of the article.
What is it¶
dsh-sidebar-fit is a DSH sidebar space allocator: it drives the layout with a “Workspace Baseline Height”. Rows of panels that exceed the budget are hidden from the tail of the list and can still be accessed via clicking the original buttons in the “More” menu. The version in the current documentation is 0.1.0, license MIT, and Node engine requirement >=20. The plugin injects the client script (lib/client.js) via a Cordis patch, with the platform being web.
Core Features¶
Draggable Divider¶
Adds a divider between the “Full-Screen Panel” list and the Workspace:
- Up/Down Drag: Dragging down makes the workspace larger and yields space to panel rows; dragging up takes space back from panel rows. The tucking effect works per row: roughly every time you drag a row’s height, one more row is tucked into “More”, it won’t swallow two rows at once.
- Double-click divider: Workspace baseline height resets to default 200px.
- Keyboard (after divider gains focus):
↑/↓increments/decrements by 24px each;PageUp/PageDownby 120px each;Home/Escresets.
Overflow Panels & “More”¶
Rows of panels that don’t fit are hidden with display:none in the DOM (using the class name sidebar-fit-hidden) without unmounting nodes. A segment (separator + items) is appended to the end of the official “More” menu, where clicking an item is equivalent to clicking the original row. When the official “More” is absent, a custom “More N Items” floating layer is displayed at the end of the list.
When the sidebar shrinks to a 56px icon bar, the entire logic yields automatically without intervention.
Persistence¶
Settings are written to the browser localStorage key dsh-sidebar-fit:minWorkspace, recording only the workspace baseline height, not the number of rows displayed. Visible row counts are recalculated when window sizes change or plugins are added/removed.
Installation & Activation¶
The installation steps in the documentation target the local desktop profile and link dependency, not the generic dsh plugin add one-liner command. Follow the original README instructions:
- Add to
dependenciesin the profile’spackage.json:
"dsh-sidebar-fit": "link:../../../../02-plugins/dsh-sidebar-fit"
- Add to the end of the
dsh.profile.bundlesarray in the same file:
"dsh-sidebar-fit"
- If local
pnpm install --offlinefails due to offline metadata strategy, you can manually link using Junctions (path needs to be adjusted to your local DSH directory):
$t = 'G:\deepseek_Harness\01-data\dsh-home\profiles\desktop\node_modules\dsh-sidebar-fit'
cmd /c mklink /J "$t" 'G:\deepseek_Harness\02-plugins\dsh-sidebar-fit'
- Reload the host (no need to restart the entire DSH). Use the current DSH port:
Invoke-WebRequest -Uri 'http://127.0.0.1:<DSH_PORT>/dsh-unlag/reload' -Method POST `
-Headers @{'x-dsh-unlag'='1'} -UseBasicParsing -TimeoutSec 90
Note: The plugin runs in the browser context with the permissions of the current DSH process. You should read the repository source code and confirm the MIT license before installing. The community directory site has no official affiliation with DeepSeek / Fangfei; installation source should be based on a GitHub repository you trust.
To uninstall, remove the corresponding items from bundles and dependencies, then run pnpm install. Plugin cleanup will remove the divider, “More” related UI, and workspace minHeight, restoring the sidebar’s official behavior.
Typical Usage¶
After completing the installation and reload, open the DSH desktop sidebar to use it, no additional configuration file is needed.
- When there are many plugins and the workspace is compressed: Drag the divider down until the session list height is sufficient.
- When you need to display more panel entries: Drag the divider up; rows that don’t fit will go into “More”, listed in segments at the end of the menu.
- When the layout gets messed up: Double-click the divider to return to the 200px baseline, or press
Home/Escwhile the divider has focus. - Developers can open
test/harness.htmlin the repository in a browser to simulate the official sidebar structure for effect preview.
The README records that under a 2560×1600 resolution with 9 panel rows, visible row count changes between “fully showing 9 rows” and “about 5 rows” as the budget changes during dragging; tucking rows one by one adds about one row per 40px; the persistent key values experienced changes like 131 → 88 → 263 → 244 → 200 during testing.
Implementation Highlights (Can be skipped by users)¶
The maintainer explained in the README why the layout remains stable:
- DOM selectors use suffix matching (e.g.,
nav[class*="panelList"]) for compatibility with CSS Module hash prefixes. - A
max-heightmust be set for the panel list and coordinated withnav > button { flex: 0 0 auto }, otherwise measurement distortion would cause skipping in tucking. ResizeObserveronly observes the sidebar root node, not the workspace, to avoid feedback loops with the customminHeight; an equality check is performed before writing to the DOM.- Performance-wise, it uses two-level caching (
st.geo/st.metrics), targeting zero forced synchronous layout calls during stable interactions; the repository providestest/perf.mjs(requires local Playwright) for regression testing.
Local self-check commands (from README):
node --check lib\client.js
node test\contract.mjs
node test\perf.mjs
Applicable Scenarios & Notes¶
Suitable for: AI developers or daily users who enable multiple sidebar client plugins in DSH for a long time, need to fix a “minimum visible workspace height”, and want overflow entries to still be accessible via “More”.
Notes:
- Behavior depends on the current DSH sidebar DOM structure and the official “More” entry; if it fails after a major version UI change, check the repository issues or look at
lib/client.jsyourself. - Settings are only stored in the local browser
localStorage; custom baseline heights will be lost when changing machines or clearing site data. - Stars and community exposure are based on the directory page; feature descriptions are based on the GitHub README and source code.
Conclusion¶
dsh-sidebar-fit ties the workspace baseline height and panel row tucking together with a single divider, alleviating the layout problem of “when there are many plugins, the session area gets squeezed away”, and does so without touching official plugin code. When you need installation steps or implementation details, you can directly check the repository README.
- Community Directory: https://www.skillhub.cn/plugins/Lstalu/dsh-sidebar-fit
- GitHub: https://github.com/Lstalu/dsh-sidebar-fit