Files
magpie/docs
yetone 7c2f27ccdf gateway: a strict conversation keeps its member past a reply that broke off
imwhatiam123 on Discord: a routing group of Qoder CN and WorkBuddy AI
set to Stays: Strict moved a session to WorkBuddy AI. A reply that
broke off after its 200 (#733, common from a plugin-served provider)
called unanswered, which forgot the stick, so the agent's retry was
routed as a new conversation (why "first", kept null) from the top of
the order. Strict promises the conversation never moves to another
account, member or key, its failure going to the agent: the stick is
now kept under strict, so the retry goes back to the same member,
fails there while it fails, and goes on there once it answers. The
member still rests for new conversations as before. Every other mode
forgets the stick as before.

TestStrictGroupKeepsItsMemberPastABrokenReply: red on the old code (the
retry went to second), green with this change.

Run at this head (on origin/main a1174674d):
- go test ./internal/gateway -count=1 -timeout 45m, both
  commits together: ok (391s)
- gofmt -l internal/gateway: clean; go vet ./internal/gateway, also
  GOOS=linux and GOOS=windows: ok

Earlier run at e5dd86965 (this change alone): one red,
TestStreamingRequestsLetTheirSentBodyGo (#3503, heap read), 5 of 5 alone.
Not tried: a real Qoder CN / WorkBuddy AI group; the break is the
test's fake upstream's SSE error after some text.
2026-10-26 15:42:59 +08:00
..