From 687cb3c9bd617e51cf37fa7574319a45031aa49e Mon Sep 17 00:00:00 2001 From: qyh15 Date: Tue, 10 Nov 2026 16:24:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(ds-bot):=20=E4=BF=9D=E7=95=99=20DSH=20?= =?UTF-8?q?=E5=8E=9F=E7=94=9F=E8=AE=BE=E7=BD=AE=E9=A1=B5=EF=BC=88M-02?= =?UTF-8?q?=EF=BC=89=EF=BC=8C=E4=B8=8D=E5=86=8D=E6=95=B4=E9=A1=B5=E6=B6=88?= =?UTF-8?q?=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vendor/ds-bot/PATCHES.md | 17 +++++++++++++++++ vendor/ds-bot/cordis.patch.yml | 11 ++++++----- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/vendor/ds-bot/PATCHES.md b/vendor/ds-bot/PATCHES.md index 158fdf5..b22a3d4 100644 --- a/vendor/ds-bot/PATCHES.md +++ b/vendor/ds-bot/PATCHES.md @@ -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`)。 diff --git a/vendor/ds-bot/cordis.patch.yml b/vendor/ds-bot/cordis.patch.yml index 91e5760..520753b 100644 --- a/vendor/ds-bot/cordis.patch.yml +++ b/vendor/ds-bot/cordis.patch.yml @@ -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. +