Files
magpie/internal
yetone afa5a50dce workbuddy: moved users get plugin 0.1.24, where a refused sign-in on a chat over 2 MiB says the 401 and to sign in again instead of 502 ECONNRESET (wyp on Discord)
wyp's WorkBuddy AI chats worked for a while, then every turn failed with
"502 WorkBuddy AI: ECONNRESET: The socket connection was closed
unexpectedly". Measured against the real endpoint from a sandbox HOME:
WorkBuddy's front door (www.workbuddy.ai and copilot.tencent.com) answers
a token it refuses with 401 only for a body up to 2097152 bytes. From
2097153 bytes on, it resets the connection without replying. So once a long
session is past 2 MiB and the sign-in is refused, every turn is a reset,
and Claude Code's "server-side issue, usually temporary" is wrong here.
Keep-alive reuse was ruled out: the server closes an idle connection with a
FIN at 60s, and Bun opens a new connection at 59.99s and 59.995s.

The fix is in the plugin (magpie-community/plugins 9a4ec86, npm 0.1.24).
When a chat over 2 MiB fails with no reply, it asks the meter once. On a
401 it returns that 401 with the remedy, kept as the plugin's other 401s
are. The chat is never sent again. This commit raises the mover's min so
keepMovedCurrent brings moved users to 0.1.24. The note also records
0.1.23 (plugins #138), which the min had skipped.

Run: gofmt -l on the file: clean. Plugin: bun test packages/workbuddy, 97
pass. Broken by hand (the new path rethrows at once), 3 of the 5 new
socket-fake tests go red. npm view --prefer-online shows 0.1.24.
Not run: go vet (darwin/linux/windows, -tags nogui) and go test, because
the disk had 0-1 GB free (df -g /), below the 3 GB floor. The change is
the one min string and its comment. Not run either: magpie's gateway end
to end with 0.1.24.

Full suite: SUITE_LINE
2026-10-15 23:08:03 +08:00
..
…
…