READMESource: main@a9bd3289
DSH SMOOTH · DSH 顺滑包
一站式解决 DSH「跑任务就卡、切会话弹重新连接、启动慢」。 纯配置 bundle + 排障 skill:不改核心、不改插件源码、可一键回滚。
它解决什么 / What it fixes
| 现象 Symptom | 处理 Fix |
|---|---|
| 跑任务整体卡顿、切工作区无响应 | UI 渲染 compact、字号 16、jobs 200ms、压缩阈值 0.35 |
| 账号区反复显示「重新连接」 | 可选层禁用 Agents-Anywhere 桥接并清理设备绑定(optional/reconnect.yml) |
| 启动慢、内存高 | 可选移除加载即报不兼容的 codex / claude-code 子代理(省约 595 MB SDK) |
实测数据 / Measured
| 指标 Metric | 之前 Before | 之后 After |
|---|---|---|
| 冷启动 starting→ready | 3.69 s(均值) | 2.61 s(近 8 次均值,-29%) |
| 启动 ValidationError | 2 条/次 | 0 |
| 渲染进程错误(slot crash / feed) | 244 条累计 | 0 |
| 5 次独立命令 vs 1 次批量 | 191 ms | 41 ms(-79%) |
| bundle 数 | 23 | 21(移除不兼容子代理后) |
安装 / Install
// %USERPROFILE%\.dsh\profiles\desktop\package.json
"dependencies": {
"dsh-smooth": "link:E:/path/to/dsh-smooth"
},
"dsh": { "profile": { "bundles": [ ... , "dsh-smooth" ] } }
或 npm(发布后):
dsh plugin --profile desktop add dsh-smooth
完全退出 DSH 再启动才生效。
可选层 / Optional
| 文件 | 作用 |
|---|---|
optional/reconnect.yml |
禁用 Agents-Anywhere 桥接,消除「重新连接」按钮 |
optional/legacy-subagents.md |
移除不兼容的 codex / claude-code 子代理 bundle |
回滚 / Rollback
- 从
bundles移除dsh-smooth→ 全部恢复; - 单项回滚:在自己的
cordis.patch.yml里覆盖同一个 id(用户层优先级更高)。
兼容性 / Compatibility
- 只用基础 bundle 的稳定 id:
ui-chat、ui-settings-account、ui-theme、jobs、compaction-basic; - 只用合法枚举(
compact/standard/detailed),避免ValidationError; - Windows 11 实测;Linux/macOS 未验证,但配置层与平台无关。
License
MIT
No comments yet. Be the first to write one.