Files
magpie/docs
yetoneandggbdpq cc93b566e2 gateway: Zed's test still checks is_error true on a real result, beside the mended orphan (#1558)
What changed: d1d45dd3 made TestZedToolResultSaysIsError's toolu_2 result
an orphan turned to text, and its assertion went from [false true] to
[false]: nothing checked any more that a result with is_error true goes
to Zed's cloud with it (yetone/magpie-releases#9). The fixture's
assistant now makes toolu_2's call, so both real results keep [false
true], and a separate toolu_9 result with no call checks the orphan goes
as its text. The pairing tests also check the synthetic result is
is_error, and a new TestMessagesSecondAnswerDropped checks a call answered
twice keeps only its first answer. docs/subsystems/gateway-routing.md gets a bullet for the Messages build's mending, beside the Gemini and Responses ones.

Why: the patch's tests passed with is_error dropped from the synthetic
result and with the second-answer rule removed.

Run (sandbox HOME, private GOCACHE):
- go test -tags nogui -run 'TestMessages|TestZed' ./internal/gateway/: ok
- pairToolBlocks call removed: the six TestMessages tests and
  TestZedToolResultSaysIsError fail ("is_error: [false true false]",
  "what the lost result said is not kept").
- IsError dropped from the synthetic result: TestMessagesUnansweredCall
  GetsSyntheticResult fails. The duplicate's continue removed:
  TestMessagesSecondAnswerDropped fails ("user[A,A]").

Co-authored-by: ggbdpq <ggbdpq@gmail.com>
2026-10-13 06:43:00 +08:00
..