provider: WorkBuddy's mover asks plugin 0.1.40, which sends the current desktop client's headers

WorkBuddy accounts used through magpie are being restricted, and a report
on X says WorkBuddy changed how it checks request-header fingerprints.
The plugin sent WorkBuddy/5.5.6 as its User-Agent and IDE version. Each
build's current desktop app (China 5.9.3 with CLI 2.165.0, WorkBuddy AI
5.8.4 with CLI 2.161.0, read from their update feeds, never run) sends
"WorkBuddy/<app> <appName>/<app> CLI/<cli>", the app's version as
X-IDE-Version, X-Agent-Type on both builds, X-Agent-Runtime: local-agent
on 5.9, and the OpenAI SDK's X-Stainless-* headers. Plugin 0.1.40
(magpie-community/plugins b2fe48e) sends them; npm view --prefer-online
gives 0.1.40. keepMovedCurrent brings every moved user up to it.

Run at a42d90d7d plus this change, on mote:
go test ./internal/provider/ -count=1 -timeout 45m: crashes in
TestUnreadLoginsWriteErrorsKeepCredentials (filememo synctest close,
#3632, open). With that test skipped, three fetch tests fail
(TestFetchAsksOneListOnceForTwoBasesOfIt,
TestFetchUnionsProtocolListsWithoutChat, TestFetchAsksASharedBaseOnce);
they fail the same with this change stashed at a42d90d7d (#3854, open).
gofmt -l clean; GOOS=linux go vet ./internal/provider clean.
Not tried: a real WorkBuddy account's chat with plugin 0.1.40, and the
full go test ./... suite.
This commit is contained in:
yetone
2026-10-28 03:31:14 +08:00
parent f2b4b98948
commit 74dcf40aac
File diff suppressed because one or more lines are too long