dsh-sidebar-width
by garrisonz
调整 Web UI 左侧会话列表栏宽度:调低 264px 拖动下限,可选调整拖动上限与展开默认宽度,启动时自动修补 ui-layout bundle。
Control the Web UI left sidebar width: lower the 264px drag minimum and optionally tune the drag maximum and the expanded default width, applied by a startup patch of the ui-layout bundle.
安装
dsh plugin --profile web add github:garrisonz/dsh-sidebar-widthGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
README
目录
Control the left sidebar (session list) width of the DeepSeek Harness Web UI: lower the drag minimum (official floor 264px), optionally the drag maximum and the expanded default width. Nothing outside the sidebar is touched.
控制 DeepSeek Harness Web UI 左侧会话列表栏宽度:调低拖动下限(官方 264px), 可选调整拖动上限与展开默认宽度。不涉及任何其他功能模块。
Why a patch-style plugin / 为什么是"打补丁"式插件
The sidebar width clamp (clampWidth(px, 264, 420)) and the 280px default are baked
into the client bundle @deepseek-ai/dsh-client-ui-layout/lib/client.js (grid solver
computeColumns + layout store setSidebar/init/toggle). The client runtime exposes
no seam to change them (the store and its actions are private to the bundle), so this
plugin patches the served bundle file once at dsh web startup:
侧边栏宽度钳制与默认值写死在客户端 bundle @deepseek-ai/dsh-client-ui-layout/lib/client.js
中(网格求解器 + layout store),客户端运行时没有可改的接缝,因此插件在 dsh web
启动时修补被服务的 bundle 文件:
- first run backs up to
client.js.dsh-sidebar-width.bak/ 首次运行先备份 - idempotent — a marker makes re-runs no-ops; a dsh upgrade replaces the file and the next startup re-patches / 幂等——升级覆盖文件后下次启动自动重打补丁
- configurable via the plugin row / 全部数值可配置
Config / 配置
| key | meaning / 含义 | default / 默认 |
|---|---|---|
min |
lower drag bound, px / 拖动下限 | 180 |
max |
upper drag bound, px / 拖动上限 | keep bundle value (420) |
defaultWidth |
expanded default width, px / 展开默认宽度 | keep bundle value (280) |
path |
absolute path of the layout client.js / 手动指定 bundle 路径 | auto-locate |
All keys optional. / 全部可选。
Install / 安装
dsh plugin --profile web add dsh-sidebar-width # npm(推荐)
# 或本地开发: dsh plugin --profile web add link:/path/to/dsh-sidebar-width
# 然后重启 dsh web(插件在启动时打补丁)
dsh pluginrequires pnpm on PATH. / 需要 PATH 上有 pnpm。
Tune / 调参
Edit ~/.dsh/profiles/web/cordis.patch.yml (user layer overrides the bundle row):
- id: sidebar-width
name: 'dsh-sidebar-width'
config:
min: 160
max: 420
defaultWidth: 240
Restart to apply. / 重启生效。
Uninstall / 卸载
dsh plugin --profile web remove dsh-sidebar-width
The patch itself stays (harmless); restore manually from the backup: 补丁不会自动回滚(无害),可手动还原:
mv <install>/.../dsh-client-ui-layout/lib/client.js.dsh-sidebar-width.bak \
<install>/.../dsh-client-ui-layout/lib/client.js
Scope / 边界
This plugin's only job is the sidebar width. No UI buttons, no other panels, no settings surface. / 本插件唯一职责就是侧边栏宽度:不加按钮、不动其他面板、不扩功能。
Publish / 发布(for maintainers)
- Push the repo to GitHub and add the
dsh-plugintopic. npm publish(namedsh-sidebar-widthis free on npm as of 2026-08-15).- Open a PR to :
add one line under UI Enhancements / UI 增强 in both
README.mdandREADME.zh.md. dsh-market picks the list up automatically.
原始 README: https://github.com/garrisonz/dsh-sidebar-width/blob/main/README.md ↗
同类插件
查看全部 →
dsh-web-ui-all
DSH Web UI 插件与皮肤合集:任务看板、git 图、右侧面板、远程移动端 UI、桌宠、实时 token 统计与皮肤中心。

dsh-web-ui
DSH Web UI 插件与皮肤合集:任务看板、git 图、右侧面板、远程移动端 UI、桌宠、实时 token 统计与皮肤中心。

dsh-TUI
Claude Code 风格全屏终端 UI:像素鲸鱼顶栏、实时工作状态行、思考流式展开。

DSH-better-sidebar
侧边栏完整工作台:内置文件渲染编辑、终端、Git 与子代理,支持三方插件注册新 Tab。

working-activity
让 agent 的"工作状态行"活过来——实时工具动态与进度、俏皮文案、模型自述、上下文预警。同一套想法,适配两个平台: pi CLI 与 DeepSeek Harness(DSH) 。

deepseek-idesign
可视化设计工作室,支持网站、App 原型、海报、信息卡、报告和杂志的模板创建、元素编辑、选区级 AI 草稿衔接与导出。