Files
magpie/internal
yetone a4937f8ff9 gateway: the effort tests' fake upstream answers only the turns
TestEffortUpdateRefused went red on macOS CI at eb1b83000:
"effort_update_test.go:158: upstream body: unexpected end of JSON
input". The fake records the last request's body in f.got, and the Codex
account's model list (provider/codex_models.go, a GET to CodexBase +
"/models" with no body) can reach the same server after the turn. When
it lands between the post and sentShape, f.got is empty.

effortCodexAccount now hands only paths ending in /responses to the fake
and answers anything else 404, which is what the model list got in effect
before (an SSE body it couldn't parse).

Run: with a GET to /models injected after the turn, the old helper fails
with CI's exact message and the new one passes (mica). go vet and
go test -tags nogui -count=20 -run Effort ./internal/gateway pass on
mica; gofmt clean. Not run: the full suite (test file only).
2026-11-14 11:59:40 +08:00
..
…
…
…
…
…
…
…
…
…
…