provider: Cursor's plugin min is 0.2.29, whose HTTP/1.1 Run sends blobs 16 at once

ysm119 on Discord: Cursor 30 s+ to first token, 1-4 min a turn. 0.2.28's
16-at-once BidiAppends reached only the plugin's stateless fallback;
every real request goes through its native session, which still sent
each history message's blob one round trip at a time when the Run fell
back to HTTP/1.1 (a proxy or network that blocks h2). 0.2.29 (plugins
8f81a8a) sends them 16 at a time there too.

Real Cursor account, sandbox HOME, plugin driven directly, h2 forced to
fail: a 30-step agent history went from 37-39 s to first token to
4.4-9.1 s; 100 steps from 117-130 s to 9.0-13.2 s, answers correct.
Over HTTP/2 nothing changed and nothing was slow (2.9-7.3 s).

Run: gofmt -l clean; go test -tags nogui ./internal/provider/ on mote,
ok. npm view --prefer-online shows 0.2.29 as latest.
Not tried: a sandbox magpie installing 0.2.29 through the mover; the
reporter's network, so whether he is on HTTP/1.1 is not confirmed.
This commit is contained in:
yetone
2026-10-28 16:03:46 +08:00
parent f95121dd05
commit b01193ef97
File diff suppressed because one or more lines are too long