axuhere on X: on free models a request sat behind "模型请求正在排队 ·
预计等待超过 10 分钟" with other providers configured for the same
model, and asked for magpie to move on to the next provider and say why.
ba37e78b4 added provider.FallbackHeader and the host.js strip, and the
Qoder (0.2.40) and CodeArts (0.2.3) plugins answer a queued request at
once with a 503 + Retry-After and the queue's reason when they get it.
Only a model test sent it, so in a group or an account chain every
plugin still waited out its vendor's queue (Qoder up to 4 minutes,
CodeArts up to 5) while another candidate could answer.
- The try loop marks every try but the last (withFallback, from !last),
and forwardOnce sets x-magpie-fallback: 1 on that plugin request. A
header the agent sent under that name is dropped first.
- The plugin's 503 is busy, so the next candidate is asked and the
trace's try says the queue (position, how many ahead). The last
candidate is never told and waits as the vendor's client does.
- Qoder's mover min is already 0.2.48 on main, so no min change.
Run (mote-run, at this commit on origin/main 34b2dd9b7):
- New TestPluginToldAnotherFollows: a group of two fake-plugin members;
the first is told and gives way with a 503 that names the queue, the
second answers untold, a lone model is never told, the vendor never
gets the header. With -run 'TestPluginToldAnotherFollows|
TestPluginModelTest|TestPluginTold|TestMovedBuiltinsSayTheirPlugin'
over internal/gateway, internal/provider and internal/plugin: ok.
- go vet (darwin, GOOS=linux, GOOS=windows) of internal/gateway,
go build ./..., gofmt -l.
Broken by hand: without the gateway.go hunk, TestPluginToldAnotherFollows
fails with "the vendor saw [{path:/v1/chat/completions fallback:}]".
Not tried:
- A full ./... suite: mote was at load 380 with five other sessions'
full suites running, so this was not added on top.
- A real Qoder or CodeArts queue through a group; the plugin side was
tested in the plugins repo (bc25bc5, bace914), red on the old code.
- Trae's plugin doesn't give way: no real queued reply on its
llm_utils_chat path has been captured.
- The screenshot's pill is Qoder.app's own client UI on Qoder's own
models; magpie isn't on that path.