fix(ds-bot): 保留 DSH 原生设置页(M-02),不再整页消失

This commit is contained in:
qyh15 2026-11-10 16:24:46 +08:00
parent 9442d9e251
commit 687cb3c9bd
2 changed files with 23 additions and 5 deletions

View File

@ -28,6 +28,23 @@ const rt = ctx.get('dsbot-runtime', false) // 未安装打过补丁的 ds-bot
影响面:只新增一个服务名 `dsbot-runtime`;不与上游已有服务冲突(全仓无同名)。
行为、工具、页面、状态文件均未改动。
## M-02:保留 DSH 原生设置页
```diff
- id: web
config:
searchProvider: auto
fetchProvider: http
-
-# DS Bot's settings shell holds the sidebar's settings seat ...
-- id: ui-settings-general
- disabled: true
```
原因:上游把 DSH 自己的设置页关掉,改由 DS Bot 的设置壳在 Bot 页面里绘制。
新装、还没有 Bot 时,侧栏就一个设置入口都没有,用户会以为设置页被删了。
本补丁保留宿主原生设置页;DS Bot 自己的设置仍可在其页面里使用。
## 升级步骤
1. 取新版本 npm tarball,解压覆盖本目录(保留本文件与 `NOTICE`)。

View File

@ -18,8 +18,9 @@
searchProvider: auto
fetchProvider: http
# DS Bot's settings shell holds the sidebar's settings seat (src/client/settings-shell.js)
# and draws DSH's settings pages in DS Bot's Settings dialog. Only the entry that declares
# the seat's child slots may render them, so DSH's own shell stays off.
- id: ui-settings-general
disabled: true
# sansheng M-02: upstream disables DSH's own settings seat here, because DS Bot's
# settings shell draws DSH's settings pages inside its Bot dialog. That leaves the
# sidebar with no settings entry until a Bot is open, so a fresh install looks as
# if the settings page disappeared. Keep DSH's native settings seat instead.
# See PATCHES.md.