- Home
- Plugin
- Miglioramenti UI
- dsh-auto-open-sidebar
dsh-auto-open-sidebar
watxtract-luca/dsh-auto-open-sidebar
Automatically opens the right sidebar for blank top-level chats on wide screens, skipping saved layouts containing tabs and leaving non-blank chats unchanged.
Installazione
dsh plugin --profile web add github:watxtract-luca/dsh-auto-open-sidebarREADME
dsh-auto-open-sidebar
Automatically opens the right sidebar when a blank, top-level chat is shown in DeepSeek Harness. No build step or runtime dependencies.
Install
For DSH Desktop, install github:WatXtract-Luca/dsh-auto-open-sidebar#v0.0.1 through the app’s plugin manager. For a regular Web profile:
dsh plugin --profile web add github:WatXtract-Luca/dsh-auto-open-sidebar#v0.0.1
Reload the page after installation. Select New Session in a workspace; the right sidebar opens to the host’s default page. No model credentials are needed.
Behavior
- Considers only blank, top-level sessions; ignores subagent children and chats with messages.
- Leaves already-expanded panels alone.
- Skips saved layouts containing tabs or floating panes, preserving ordinary manual collapses.
- Handles a session at most once per plugin activation. An older blank session with an empty layout can also qualify.
- Does not auto-open below 768px, where the host uses a fullscreen drawer.
- Prefers the header expand control to preserve input focus; its controller fallback can focus the sidebar.
Compatibility and limitations
Verified on DSH 0.2.2-rc.1, including a live Desktop installation and an isolated Web instance. Uses sessions, sidebarRight, the host’s dsh.sidebar-right.v1 localStorage layout, and its header DOM marker. These host details may change in future releases. Storage errors or malformed layouts are treated as pristine. Closing the last tab can leave an empty layout eligible after a page reload.
The plugin makes no network requests, registers no agent tools or host routes, and installs no dependencies or lifecycle scripts. Its host entry is a no-op; behavior runs in the browser.
Development and verification
node --check client.js
node --check index.js
npm test
npm pack --dry-run
The existing smoke harness covers expansion, non-blank sessions, repeat navigation, narrow windows, fallback retries, delayed list rows, disposal, saved layouts and subagent children. An isolated browser check found stock DSH collapsed after New Session and the plugin expanded; the author also confirmed the live Desktop behavior. The browser check did not exercise chats containing messages.
| File | Purpose |
|---|---|
client.js | Browser watcher and bounded opening attempts |
index.js | No-op host entry |
cordis.patch.yml | Installable DSH bundle |
test/smoke.mjs | Dependency-free fake-browser checks |
Disable or remove
Disable auto-open-sidebar in the host plugin list or remove this package through the plugin manager. Existing host-owned sidebar layouts are retained.
License
MIT.
Plugin correlati
dsh-web (dsh-task-board)
zhu1090093659/dsh-web
dsh-web (dsh-web-all)
zhu1090093659/dsh-web
dsh-TUI
ccch1mneyyy/dsh-tui
dsh-web-ui (dsh-task-board)
zhu1090093659/dsh-web-ui