Skip to content

A local-first multi-agent app development platform, built on PenguinHarness

fix(core,cli): AgentHub 0.4.14 so a DeepSeek tool chain survives a strict Responses relay and the turns the model thought nothing on (#703)

Yaowei Zhengbb6ab95eb643
diff --git a/changelog/unreleased/2026-09-12-agenthub-0.4.14.md b/changelog/unreleased/2026-09-12-agenthub-0.4.14.md
new file mode 100644
index 00000000..bd891eb2
--- /dev/null
+++ b/changelog/unreleased/2026-09-12-agenthub-0.4.14.md
@@ -0,0 +1,17 @@
+# AgentHub 0.4.14: a DeepSeek tool chain survives a strict Responses relay and the turns the model thought nothing on
+
+- **Date:** 2026-09-12
+- **Type:** fix
+- **Scope:** `core`, `cli`
+- **PR:** [#703](https://github.com/Prism-Shadow/penguin-harness/pull/703)
+- **Issue:** [#404](https://github.com/Prism-Shadow/penguin-harness/issues/404)
+
+[中文版](2026-09-12-agenthub-0.4.14.zh.md)
+
+`@prismshadow/agenthub` moved from 0.4.12 to 0.4.14 (agenthub [#212](https://github.com/Prism-Shadow/agenthub/pull/212) in 0.4.13, agenthub [#215](https://github.com/Prism-Shadow/agenthub/pull/215) in 0.4.14). Two DeepSeek failures end with it. A row pinned to `deepseek-v4` — the direct `deepseek-flash` preset, or a relay entry with `client_type = "deepseek-v4"` — no longer dies on the request after its first tool call with `400 {"code":"invalid_json"}` behind a strictly validating Responses endpoint: the client sends a text-only tool result as a plain string and keeps the content-part list only for a result that carries images. And a task run against DeepSeek over the `openai-chat` protocol no longer dies part-way through with `400 The reasoning_content in the thinking mode must be passed back to the API. (invalid_request_error)`: the client sends the reasoning field as an empty string on a tool-calling turn the model thought nothing on.
+
+## Details
+
+- 0.4.14: the `deepseek_v4` and `gpt6` clients wrapped every tool result in a one-part content list, the multimodal form; a strict DeepSeek Responses endpoint rejected it, and the engine classified the rejection as a provider 4xx, `fatal`, so the Task stopped where it stood. Both clients now take the form the generic `openai-responses` client has used since 0.4.11, so every Responses and Chat Completions client AgentHub ships sends a text-only tool result as a plain string. `deepseek_v4` keeps refusing images on the ids whose model reads none.
+- 0.4.13: DeepSeek requires the chain of thought back only when it cannot recover it from a `tool_call` id it issued itself, so the rejection appears on an endpoint that reissues ids — a relay, or a custom OpenAI-compatible entry in front of DeepSeek — and not on a direct `provider = "deepseek"` row. The turns it applies to are DeepSeek's own doing: past the first few steps of a long tool chain it answers with a bare tool call and no reasoning at all. The fix lives in AgentHub's `openai_chat` client, so every row pinned to `openai-chat` and the vLLM rows that subclass it are covered.
+- `pnpm-workspace.yaml`'s `minimumReleaseAgeExclude` entry names 0.4.14 in place of 0.4.12.
diff --git a/changelog/unreleased/2026-09-12-agenthub-0.4.14.zh.md b/changelog/unreleased/2026-09-12-agenthub-0.4.14.zh.md
new file mode 100644
index 00000000..5a2df3ff
--- /dev/null
+++ b/changelog/unreleased/2026-09-12-agenthub-0.4.14.zh.md
@@ -0,0 +1,17 @@
+# AgentHub 0.4.14:DeepSeek 的工具链不再死在严格校验的 Responses 中转和「模型没思考」的那一轮上
+
+- **Date:** 2026-09-12
+- **Type:** fix
+- **Scope:** `core`, `cli`
+- **PR:** [#703](https://github.com/Prism-Shadow/penguin-harness/pull/703)
+- **Issue:** [#404](https://github.com/Prism-Shadow/penguin-harness/issues/404)
+
+[English](2026-09-12-agenthub-0.4.14.md)
+
+`@prismshadow/agenthub` 从 0.4.12 升至 0.4.14(0.4.13 含 agenthub [#212](https://github.com/Prism-Shadow/agenthub/pull/212),0.4.14 含 agenthub [#215](https://github.com/Prism-Shadow/agenthub/pull/215))。两个 DeepSeek 上的故障随之结束。钉在 `deepseek-v4` 的行——直连的 `deepseek-flash` 预置,或 `client_type = "deepseek-v4"` 的中转条目——在严格校验的 Responses 端点后面不再于第一次工具调用之后的那个请求上以 `400 {"code":"invalid_json"}` 死掉:client 把纯文本工具结果作为纯字符串发送,只有带图片的结果才保留 content 部件列表。经 `openai-chat` 协议访问 DeepSeek 的任务也不再跑到一半以 `400 The reasoning_content in the thinking mode must be passed back to the API. (invalid_request_error)` 中断:「有工具调用但没产出思考」的那一轮会以空字符串发出 reasoning 字段。
+
+## 细节
+
+- 0.4.14:`deepseek_v4` 与 `gpt6` 客户端此前把每个工具结果都包进只有一个部件的 content 列表(多模态形态);严格的 DeepSeek Responses 端点拒绝它,引擎把这个拒绝归类为 provider 4xx、即 `fatal`,Task 当场停住。两者现在采用通用 `openai-responses` 客户端自 0.4.11 起的形态,AgentHub 提供的所有 Responses 与 Chat Completions 客户端都以纯字符串发送纯文本工具结果。`deepseek_v4` 对模型不读图片的 id 依旧拒绝图片。
+- 0.4.13:DeepSeek 只在无法从自己签发的 `tool_call` id 复原思考内容时才要求回传,因此这个拒绝只出现在会重签 id 的端点上——中转站,或架在 DeepSeek 前面的自定义 OpenAI 兼容条目——直连的 `provider = "deepseek"` 条目不会遇到。而触发它的那些轮次正是 DeepSeek 自己造的:长工具链跑过头几步之后,它会直接给出工具调用、一点 reasoning 都不带。修复在 AgentHub 的 `openai_chat` 客户端,因此所有钉在 `openai-chat` 的行、以及继承它的 vLLM 行都被覆盖。
+- `pnpm-workspace.yaml` 的 `minimumReleaseAgeExclude` 条目改为 0.4.14,替换 0.4.12。
diff --git a/packages/cli/package.json b/packages/cli/package.json
index 22412b1a..4e6014af 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -36,7 +36,7 @@
"@penguinharness/use-bento-slides": "workspace:*",
"@penguinharness/use-firecrawl": "workspace:*",
"@penguinharness/use-claude-code": "workspace:*",
- "@prismshadow/agenthub": "^0.4.12",
+ "@prismshadow/agenthub": "^0.4.14",
"@prismshadow/penguin-core": "workspace:*",
"@prismshadow/penguin-server": "workspace:*",
"commander": "^13.0.0",
diff --git a/packages/core/package.json b/packages/core/package.json
index d4d12ddb..dd25c130 100644
--- a/packages/core/package.json
+++ b/packages/core/package.json
@@ -69,7 +69,7 @@
"@penguinharness/use-bento-slides": "workspace:*",
"@penguinharness/use-firecrawl": "workspace:*",
"@penguinharness/use-claude-code": "workspace:*",
- "@prismshadow/agenthub": "^0.4.12",
+ "@prismshadow/agenthub": "^0.4.14",
"arktype": "^2.2.3",
"smol-toml": "^1.3.0",
"yaml": "^2.5.0"
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 5b92de28..464ebbd6 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -88,8 +88,8 @@ importers:
specifier: workspace:*
version: link:../../plugins/use-firecrawl
'@prismshadow/agenthub':
- specifier: ^0.4.12
+ specifier: ^0.4.14
'@prismshadow/penguin-core':
specifier: workspace:*
version: link:../core
@@ -167,8 +167,8 @@ importers:
specifier: workspace:*
version: link:../../plugins/use-firecrawl
'@prismshadow/agenthub':
- specifier: ^0.4.12
+ specifier: ^0.4.14
arktype:
specifier: ^2.2.3
version: 2.2.3
@@ -1506,8 +1506,8 @@ packages:
engines: {node: '>=18'}
hasBin: true
- '@prismshadow/[email protected]':
- resolution: {integrity: sha512-e739bkRsP8OGhNzeDNm64ki7Fry44u9esxYuqFB687GfflXeOW7Ot9oq1GNiPvEWNGf4Qu6vWM12V7G1MORf7g==}
+ '@prismshadow/[email protected]':
+ resolution: {integrity: sha512-rxyymbF7QC+jMJf+BEZiPnOQQIkgSWZKIVAo+IOatGkTNGpUho/8Qu6hpAciSWG6LV0P2L7UxIVnfgPhRF86aw==}
'@prismshadow/penguin-cli@file:packages/cli':
resolution: {directory: packages/cli, type: directory}
@@ -5408,7 +5408,7 @@ snapshots:
dependencies:
playwright: 1.61.1
dependencies:
'@anthropic-ai/bedrock-sdk': 0.26.4([email protected])
'@anthropic-ai/sdk': 0.91.1([email protected])
@@ -5423,7 +5423,7 @@ snapshots:
- ws
- zod
dependencies:
'@anthropic-ai/bedrock-sdk': 0.26.4([email protected])
'@anthropic-ai/sdk': 0.91.1([email protected])
@@ -5453,7 +5453,7 @@ snapshots:
'@penguinharness/use-bento-slides': file:plugins/use-bento-slides
'@penguinharness/use-claude-code': file:plugins/use-claude-code
'@penguinharness/use-firecrawl': file:plugins/use-firecrawl
- '@prismshadow/agenthub': 0.4.12([email protected])([email protected])
+ '@prismshadow/agenthub': 0.4.14([email protected])([email protected])
'@prismshadow/penguin-core': file:packages/core([email protected])([email protected])
'@prismshadow/penguin-server': file:packages/server([email protected])
commander: 13.1.0
@@ -5484,7 +5484,7 @@ snapshots:
'@penguinharness/use-bento-slides': file:plugins/use-bento-slides
'@penguinharness/use-claude-code': file:plugins/use-claude-code
'@penguinharness/use-firecrawl': file:plugins/use-firecrawl
- '@prismshadow/agenthub': 0.4.12([email protected])([email protected])
+ '@prismshadow/agenthub': 0.4.14([email protected])([email protected])
arktype: 2.2.3
smol-toml: 1.6.1
yaml: 2.9.0
@@ -5511,7 +5511,7 @@ snapshots:
'@penguinharness/use-bento-slides': file:plugins/use-bento-slides
'@penguinharness/use-claude-code': file:plugins/use-claude-code
'@penguinharness/use-firecrawl': file:plugins/use-firecrawl
- '@prismshadow/agenthub': 0.4.12([email protected])([email protected])([email protected])
+ '@prismshadow/agenthub': 0.4.14([email protected])([email protected])([email protected])
arktype: 2.2.3
smol-toml: 1.6.1
yaml: 2.9.0
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index c593d992..b382575b 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -61,4 +61,4 @@ minimumReleaseAgeExclude:
- "@deepseek-ai/[email protected]"
- "@deepseek-ai/[email protected]"
- "@microsoft/[email protected]"
- - "@prismshadow/[email protected]"
+ - "@prismshadow/[email protected]"