DeepSeek through group/deepseek in Pi wrote <tool_call>{"name":"bash">
then <parameter name="command">cd … && node .review-tmp and stopped: half
Hermes' block, half its own template, with the closes (its own tokens,
which the API drops) gone. None of the text-call readers took it, so Pi got
it as text and the turn ended. paramCall reads the name as JSON closed with
}, > or nothing, then each <parameter name="k"> (or <parameter=k>) up to
its close, the next parameter, </tool_call> or the end; a JSON value is
taken as it. A tool not offered, or a name with nothing after it, stays text.
Tested for real: real DeepSeek (deepseek-flash, through a sandbox
gateway's group/deepseek), asked to echo the screenshot's text with a
bash tool offered, wrote exactly it; the live gateway (old code) handed it
on as that text with finish "stop", the new one as a bash call with
{"command":"cd /e/Project/synara && node .review-tmp"} and finish
"tool_calls". TestTextWrittenParamCallRelayed is new and fails without the
change. go vet, go build (GOOS=linux nogui, GOOS=windows) and go test
-tags nogui ./internal/gateway/ under a temp HOME pass.