You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug Report: All tool calls fail with unknown tool "" β tool-call payloads emitted with empty name
#3052
Summary
In a DSH Web GUI session, every tool invocation generated by the assistant carries an empty name attribute. The harness runtime therefore rejects each call with Error: unknown tool "". The failure is systematic: 5 consecutive calls across 3 different tool types (pwsh Γ3, read Γ2β¦ pwsh Γ3, read Γ1) all failed identically. The agent is effectively tool-blind: it can produce text but cannot execute any tool.
Environment
Harness checkout: C:\Users\bake\AppData\Local\nvm\v24.19.0\node_modules@deepseek-ai\dsh
Client: DeepSeek Harness Web GUI at http://127.0.0.1:3080/
Agent model: deepseek-v4-flash
OS: Windows, Node v24.19.0 (via nvm)
Reproduction
Open a DSH Web GUI session (agent model deepseek-v4-flash).
Ask the assistant to run any tool, e.g. "run pwsh Get-Location".
Observe: the assistant emits a tool call whose name field is empty.
Runtime responds: Error: unknown tool "".
Expected behavior
The tool call carries the correct tool name (e.g. pwsh, read) and executes normally.
Actual behavior
Every tool call is rejected with Error: unknown tool ""; no tool ever executes.
Evidence (verbatim)
The generated tool-call payload repeatedly contained:
xml
ε€εΆ
Get-Location; Write-Output "OK - tool call works"
Show current directory to verify tool calls work
pwsh β Get-Location (attempt 1)
pwsh β Get-Location (attempt 2)
pwsh β Get-Location (attempt 3)
read β C:\Users\bake\AppData\Local\nvm\v24.19.0\node_modules@deepseek-ai\dsh\package.json
The user-facing confusion is real: this reads like an authoring mistake ("the name attribute is empty in my generation" β user's own words), not a pipeline defect, and twice the assistant was instructed to stop repeating the call β neither of which is actionable when the root cause is upstream of the model.
Likely cause (hypothesis)
The serialization path converting model output into the runtime dispatch payload drops the name field. Suspect areas:
Streamed tool-call chunk assembly: if the tool name and arguments arrive as separate streamed chunks and the assembly drops the name chunk, the resulting call has an empty name.
Validation gap: the tool router treats name as optional or accepts empty strings; the model-side invocation schema may not enforce a required non-empty name.
Web GUI bridge / client-plugin serialization: tool-call payloads crossing the Web GUI bridge may be re-serialized without name.
Suggested fix
Enforce name as a required, non-empty field when validating tool calls before dispatch; emit a diagnostic error listing the expected tool schema when it is missing.
Audit streamed tool-call chunk assembly to guarantee the name chunk is included.
Add an end-to-end test: model output β deserialize β dispatch, asserting name survives the round trip.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Summary
In a DSH Web GUI session, every tool invocation generated by the assistant carries an empty name attribute. The harness runtime therefore rejects each call with Error: unknown tool "". The failure is systematic: 5 consecutive calls across 3 different tool types (pwsh Γ3, read Γ2β¦ pwsh Γ3, read Γ1) all failed identically. The agent is effectively tool-blind: it can produce text but cannot execute any tool.
Environment
Harness checkout: C:\Users\bake\AppData\Local\nvm\v24.19.0\node_modules@deepseek-ai\dsh
Client: DeepSeek Harness Web GUI at
http://127.0.0.1:3080/
Agent model: deepseek-v4-flash
OS: Windows, Node v24.19.0 (via nvm)
Reproduction
Open a DSH Web GUI session (agent model deepseek-v4-flash).
Ask the assistant to run any tool, e.g. "run pwsh Get-Location".
Observe: the assistant emits a tool call whose name field is empty.
Runtime responds: Error: unknown tool "".
Expected behavior
The tool call carries the correct tool name (e.g. pwsh, read) and executes normally.
Actual behavior
Every tool call is rejected with Error: unknown tool ""; no tool ever executes.
Evidence (verbatim)
The generated tool-call payload repeatedly contained:
xml
ε€εΆ
Get-Location; Write-Output "OK - tool call works"
Show current directory to verify tool calls work
Runtime response, every time:
ε€εΆ
Error: unknown tool ""
Attempts (all identical failures):
pwsh β Get-Location (attempt 1)
pwsh β Get-Location (attempt 2)
pwsh β Get-Location (attempt 3)
read β C:\Users\bake\AppData\Local\nvm\v24.19.0\node_modules@deepseek-ai\dsh\package.json
The user-facing confusion is real: this reads like an authoring mistake ("the name attribute is empty in my generation" β user's own words), not a pipeline defect, and twice the assistant was instructed to stop repeating the call β neither of which is actionable when the root cause is upstream of the model.
Likely cause (hypothesis)
The serialization path converting model output into the runtime dispatch payload drops the name field. Suspect areas:
Streamed tool-call chunk assembly: if the tool name and arguments arrive as separate streamed chunks and the assembly drops the name chunk, the resulting call has an empty name.
Validation gap: the tool router treats name as optional or accepts empty strings; the model-side invocation schema may not enforce a required non-empty name.
Web GUI bridge / client-plugin serialization: tool-call payloads crossing the Web GUI bridge may be re-serialized without name.
Suggested fix
Enforce name as a required, non-empty field when validating tool calls before dispatch; emit a diagnostic error listing the expected tool schema when it is missing.
Audit streamed tool-call chunk assembly to guarantee the name chunk is included.
Add an end-to-end test: model output β deserialize β dispatch, asserting name survives the round trip.
All reactions