Files
magpie/internal
yetone b883b11c8a gateway: a test holds Copilot's Gemini and Grok tool schemas on every client route (Novello42 on X, #3931, #4374)
Novello42 reported Codex with MCP tools through Copilot's Gemini and Grok
failing with 400 or empty tool arguments. Both causes were fixed in
b1f5806cb (v0.1.3757): Copilot's Gemini no longer gets `type` written
beside a nullable anyOf, and Copilot's Grok gets root unions as objects
(nested unions folded) and namespaces flat. This adds the matrix that was
missing: Pydantic's Optional[str] (#3931), Codex's move_thread_to_project
projectId and a reconstruction of automation_update (root oneOf through
$defs, unions inside the branches), each sent by a Chat, Messages and
Responses client to both models, against a fake Copilot that refuses what
the live account refused.

No product change. Run (mote, -tags nogui): the new test passes at
origin/main 4028687b8. At b1f5806cb^ (before the fix) 12 of its 18 cases are
red: all nine Gemini and the three Grok automation ones, so it guards the
fix on every route, not only the Responses one.
Not tried: a live Copilot account; Grok with a union inside a union that
sits under a property rather than at the root (no recorded refusal to
copy); the full suite.
2026-11-12 16:01:00 +08:00
..
…
…
…
…
…
…
…
…
…
…
…
…