condaThinker/dsh-left-sidebar-collapse

Auto-collapse / fully-collapse the DSH left sidebar on session select (standalone DSH plugin)

Auto-collapses or fully collapses the DSH left sidebar when you select a conversation. Two independent preferences in Settings → General: (1) Auto-collapse sidebar — after selecting a conversation the sidebar collapses to its 56px rail; a plugin-internal state machine drives ctx.layout and reads the stable data-sidebar-collapsed frame signal, holding against the layout's own feedback so it never double-toggles. (2) Fully collapse — when collapsed, tuck the rail completely away (the grid's first track collapses to 0) and show a single floating expand button in the top-left; clicking restores the full sidebar. The conversation pane stays at full width — nothing else is disturbed.

Web UI Enhancements ★ 2 updated 2026-08-15 ✅ runtime-tested
View on GitHub ↗

Install

dsh plugin --profile web add git+https://github.com/condaThinker/dsh-left-sidebar-collapse

dsh plugin --profile web add git+https://github.com/condaThinker/dsh-left-sidebar-collapse, then restart the profile (dsh --profile web). The plugin ships a self-contained prepare build script (tsdown) per the DSH plugin distribution convention — when installed by git, pnpm runs it, so the profile must allow the build: add dsh-left-sidebar-collapse to the profile's allowBuilds (pnpm ≥10) and re-run the add. English README.

Compatibility

DSH web profile with dsh CLI; pure client plugin (no ui-layout framework changes); preferences persisted in localStorage.

Details

Recent updates

auto-collapse to 56px rail on session select; full-collapse mode with floating expand button; deterministic state machine; localStorage prefs.

FAQ

What does auto-collapse do?
After you select a conversation, the left sidebar collapses to its 56px rail — deterministic, never double-toggles.
What does fully collapse add?
It removes the rail entirely (first grid track to 0) and shows a single floating expand button top-left.
Where are the preferences?
Settings → General, persisted in localStorage (process-local browser preference, survives reloads).

Alternatives

omdsh-dev/DSH-better-sidebar · HuanLinOTO/dsh-plugin-better-sidebar-plugin-office · condaThinker/dsh-left-sidebar-collapse

More plugins in Web UI Enhancements

Browse more in Web UI Enhancements

Guides for Web UI Enhancements plugins