Files
magpie/internal
ggbdpq 9fdcb7c31e gateway: a Claude Code call made before its input is written reached the client with no arguments (#4611)
What changed

Claude Code 2.1.314 makes the calls of one message side by side, so a
second call can arrive through the MCP helper while its input is still
being streamed, carrying no arguments field at all. The run's fast
path (a call the transcript has not yet, tells the client itself)
emitted that shape as it came, and the client received a function_call
with empty arguments that could only fail; the message written seconds
later carried the input whole and was left out with the rest. A call
that arrived between the client's replies ended the same way, its
block dropped with its message.

Such a call is now held back and told by that message itself: a
message with a held call is no longer left out, its blocks the calls
already told are skipped, and every held call goes out with its whole
input (#4611).

Run

go test ./internal/gateway -run 'TestClaudeTUI' -count=1

Generated-by: GLM-5.3-Flash (ZCode)

Landed from ggbdpq's branch (patch posted on the issue; sha256/patch-id
checked against the issue) by yetone, rebased on origin/main 2026-11-03.
Run at the pushed tree, on mote (macOS): go test -tags nogui -count=1 of
internal/gateway with -run over this batch's tests and their families
(PlainSchema, Antigravity, AutoMode, WebP, ClaudeTUI, NativeRelay,
Namespace, Grok, Zed, Codex, ClinePass, rewrite) ok; -race -count=3 of
the new tests ok; GOOS=linux and GOOS=windows go vet of internal/gateway
and gofmt -l clean. The full gateway-and-importers run, started at an
earlier base, was still running at the push; its reds get issues.
Broken by hand: the product change reverted,
TestClaudeTUICallWithNoInputYetWaitsForItsMessage red; restored, green.
Risk kept: a call held in unheard waits for its message; if Claude Code
ever held that message until the call's result is in, the turn would
wait. Not tried with a real Claude Code TUI.
2026-11-03 02:27:57 +08:00
..
…
…
…
…
…
…