Skip to content

A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.

Merge remote-tracking branch 'origin/main' into docs/web-search-provider

Fei2411533a4414fa97
diff --cc docs/known-issues.md
index f0bf8bda,4fe39a2e..cbf0f19a
--- a/docs/known-issues.md
+++ b/docs/known-issues.md
@@@ -36,43 -36,9 +36,43 @@@ Installing another version of DS Bot do
1. Quit DSH.
2. Open `cordis.patch.yml` in the profile folder. Look for a row with `id: bot` that has no `name: ds-bot` line, and remove that row. Keep a copy of the file first.
- 3. Check that `package.json` in the same folder lists `ds-bot` under `dependencies`. If it does not, add DS Bot again: `npx @deepseek-ai/[email protected] plugin --profile web add ds-bot`.
+ 3. Check that `package.json` in the same folder lists `ds-bot` under `dependencies`. If it does not, add DS Bot again: `npx @deepseek-ai/[email protected] plugin --profile web add ds-bot`.
4. Start DSH again.
- To see where the row comes from, run `npx @deepseek-ai/[email protected] --profile web --dump-config`. It prints every plugin row with the file that supplied it. If you report the problem, copy only the rows with `id: bot` and the file names; leave out keys and paths you do not want to share.
+ To see where the row comes from, run `npx @deepseek-ai/[email protected] --profile web --dump-config`. It prints every plugin row with the file that supplied it. If you report the problem, copy only the rows with `id: bot` and the file names; leave out keys and paths you do not want to share.
Deleting the whole profile folder also fixes it, but it removes the profile's other plugins and its settings, such as models. The Bot team is in `~/.dsh/bot/` and is not affected either way.
+
+## Web search fails everywhere after turning off "web-search-auto"
+
+**Where:** every session, Bot chats and normal Agent chats alike, after you turn off the `web-search-auto` row in the sidebar's Plugins page or with `disabled: true` in the profile's `cordis.patch.yml`. Each `web_search` call returns:
+
+```text
+Error: configured web provider "auto" is not registered
+```
+
+The error code is `WEB_PROVIDER_CONFIGURED_MISSING`.
+
+**Why:** DS Bot's `cordis.patch.yml` sets the `web` row's `searchProvider` to `auto` whether or not the `web-search-auto` row is on, and DeepSeek Harness does not fall back to another provider when the one it names is missing.
+
+**What to do:** the profile folder is the same as in the entry above.
+
+1. Quit DSH.
+2. Open `cordis.patch.yml` in the profile folder. Next to the row that turns off `web-search-auto`, add a `web` row that names another search provider. This row replaces the whole config of the `web` row, so keep `fetchProvider` in it:
+
+ ```yaml
+ - id: web-search-auto
+ name: ds-bot/web-search
+ disabled: true
+ - id: web
+ name: '@deepseek-ai/dsh-web'
+ config:
+ searchProvider: deepseek-official
+ fetchProvider: http
+ ```
+
+3. Start DSH again.
+
+To check the result, run `npx @deepseek-ai/[email protected] --profile web --dump-config` and look at the `web` row. Another plugin can also set the search provider while DSH runs, after the profile patch. If you turn such a plugin off later, check this setting again.
+
+See also [Web search](../ds-bot/README.md#web-search) in the plugin README and issue [#128](https://github.com/Fei2411/DeepSeek-Bot/issues/128).
diff --cc docs/known-issues.zh.md
index a6a362e5,09fb484e..f139ca8e
--- a/docs/known-issues.zh.md
+++ b/docs/known-issues.zh.md
@@@ -36,43 -36,9 +36,43 @@@ dsh: disabling profile plugin row "bot"
1. 退出 DSH。
2. 打开 profile 文件夹里的 `cordis.patch.yml`,找 `id: bot` 但没有 `name: ds-bot` 的一行,删掉这一行。改之前先备份这个文件。
- 3. 确认同一文件夹的 `package.json` 在 `dependencies` 里有 `ds-bot`。没有的话,重新添加 DS Bot:`npx @deepseek-ai/[email protected] plugin --profile web add ds-bot`。
+ 3. 确认同一文件夹的 `package.json` 在 `dependencies` 里有 `ds-bot`。没有的话,重新添加 DS Bot:`npx @deepseek-ai/[email protected] plugin --profile web add ds-bot`。
4. 重新启动 DSH。
- 想知道这一行来自哪里,可以运行 `npx @deepseek-ai/[email protected] --profile web --dump-config`。它会列出每一行插件配置,以及提供它的文件。如果要报告这个问题,只复制 `id: bot` 的那几行和文件名,不要带上 key 或你不想公开的路径。
+ 想知道这一行来自哪里,可以运行 `npx @deepseek-ai/[email protected] --profile web --dump-config`。它会列出每一行插件配置,以及提供它的文件。如果要报告这个问题,只复制 `id: bot` 的那几行和文件名,不要带上 key 或你不想公开的路径。
删掉整个 profile 文件夹也能解决,但会一并删掉这个 profile 的其他插件和设置(比如模型)。Bot 团队数据在 `~/.dsh/bot/`,两种做法都不会影响它。
+
+## 关掉「web-search-auto」后,所有会话的网页搜索都失败
+
+**在哪里:** 在侧栏的插件页关掉 `web-search-auto` 这一行,或者在 profile 的 `cordis.patch.yml` 里给它写 `disabled: true` 之后,所有会话都受影响,Bot 聊天和普通 Agent 聊天都一样。每次调用 `web_search` 都返回:
+
+```text
+Error: configured web provider "auto" is not registered
+```
+
+错误码是 `WEB_PROVIDER_CONFIGURED_MISSING`。
+
+**原因:** 不管 `web-search-auto` 这一行开没开,DS Bot 的 `cordis.patch.yml` 都会把 `web` 行的 `searchProvider` 设成 `auto`;而它指定的 provider 不存在时,DeepSeek Harness 不会换用别的 provider。
+
+**怎么处理:** profile 文件夹和上一条里的一样。
+
+1. 退出 DSH。
+2. 打开 profile 文件夹里的 `cordis.patch.yml`。在关掉 `web-search-auto` 的那一行旁边,加一条 `web` 行,指定另一个搜索 provider。这一条会替换 `web` 行的整个 config,所以 `fetchProvider` 也要写上:
+
+ ```yaml
+ - id: web-search-auto
+ name: ds-bot/web-search
+ disabled: true
+ - id: web
+ name: '@deepseek-ai/dsh-web'
+ config:
+ searchProvider: deepseek-official
+ fetchProvider: http
+ ```
+
+3. 重新启动 DSH。
+
+想确认结果,可以运行 `npx @deepseek-ai/[email protected] --profile web --dump-config`,看 `web` 那一行。另外,有的插件会在 DSH 运行时设置搜索 provider,时间在 profile patch 之后。以后关掉这类插件时,也要再检查一下这个设置。
+
+另见插件 README 的 [Web search](../ds-bot/README.md#web-search) 一节和 issue [#128](https://github.com/Fei2411/DeepSeek-Bot/issues/128)。